projects
/
xonotic
/
netradiant.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ae929
)
radiant: restart on game change
author
Thomas Debesse <dev@illwieckz.net>
Sun, 14 Jul 2019 06:05:00 +0000
(08:05 +0200)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/radiant/preferences.cpp
b/radiant/preferences.cpp
index e85bd92c9c5b4ef9beebe94b54983b9f72dd08e0..11d569a20ff364b3b563e1a46e76f70cd8931e0f 100644
(file)
--- 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<void(int)> & importCallback ) const {