"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/GuiApplication.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

GuiApplication.cpp  (lmms-1.2.0-rc7):GuiApplication.cpp  (lmms-1.2.0-rc8)
skipping to change at line 56 skipping to change at line 56
GuiApplication* GuiApplication::s_instance = nullptr; GuiApplication* GuiApplication::s_instance = nullptr;
GuiApplication* GuiApplication::instance() GuiApplication* GuiApplication::instance()
{ {
return s_instance; return s_instance;
} }
GuiApplication::GuiApplication() GuiApplication::GuiApplication()
{ {
// enable HiDPI scaling before showing anything (Qt 5.6+ only)
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
#endif
// prompt the user to create the LMMS working directory (e.g. ~/Documents /lmms) if it doesn't exist // prompt the user to create the LMMS working directory (e.g. ~/Documents /lmms) if it doesn't exist
if ( !ConfigManager::inst()->hasWorkingDir() && if ( !ConfigManager::inst()->hasWorkingDir() &&
QMessageBox::question( NULL, QMessageBox::question( NULL,
tr( "Working directory" ), tr( "Working directory" ),
tr( "The LMMS working directory %1 does not " tr( "The LMMS working directory %1 does not "
"exist. Create it now? You can change the directo ry " "exist. Create it now? You can change the directo ry "
"later via Edit -> Settings." ).arg( ConfigManage r::inst()->workingDir() ), "later via Edit -> Settings." ).arg( ConfigManage r::inst()->workingDir() ),
QMessageBox::Yes | QMessageBox::No, QMess ageBox::Yes ) == QMessageBox::Yes) QMessageBox::Yes | QMessageBox::No, QMess ageBox::Yes ) == QMessageBox::Yes)
{ {
ConfigManager::inst()->createWorkingDir(); ConfigManager::inst()->createWorkingDir();
 End of changes. 1 change blocks. 
5 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)