]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
radiant: restart on game change
authorThomas Debesse <dev@illwieckz.net>
Sun, 14 Jul 2019 06:05:00 +0000 (08:05 +0200)
committerThomas Debesse <dev@illwieckz.net>
Mon, 22 Jul 2019 02:09:24 +0000 (04:09 +0200)
ask user to restart radiant on game change

radiant/preferences.cpp

index e85bd92c9c5b4ef9beebe94b54983b9f72dd08e0..11d569a20ff364b3b563e1a46e76f70cd8931e0f 100644 (file)
@@ -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<void(int)> & importCallback ) const {