From 179e3c7cb6ed2cfcb1364ac0eb95adc3893558f1 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 14 Jul 2019 08:05:00 +0200 Subject: [PATCH] radiant: restart on game change ask user to restart radiant on game change --- radiant/preferences.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { -- 2.39.2