]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.cpp
radiant: restart on game change
[xonotic/netradiant.git] / 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 {