From: Thomas Debesse Date: Sun, 14 Jul 2019 06:05:00 +0000 (+0200) Subject: radiant: restart on game change X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=179e3c7cb6ed2cfcb1364ac0eb95adc3893558f1;p=xonotic%2Fnetradiant.git radiant: restart on game change ask user to restart radiant on game change --- diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index e85bd92c..11d569a2 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -281,7 +281,11 @@ void CGameDialog::GameFileImport( int value ){ { ++iGame; } - m_sGameFile = ( *iGame )->mGameFile; + + if ( ( *iGame )->mGameFile != m_sGameFile ) { + m_sGameFile = ( *iGame )->mGameFile; + PreferencesDialog_restartRequired( "Selected Game" ); + } } void CGameDialog::GameFileExport( const Callback & importCallback ) const {