bikeshedding: some wording 141/head
authorThomas Debesse <dev@illwieckz.net>
Sun, 14 Jul 2019 00:57:54 +0000 (02:57 +0200)
committerThomas Debesse <dev@illwieckz.net>
Mon, 22 Jul 2019 02:09:24 +0000 (04:09 +0200)
libs/uilib/uilib.h
radiant/mainframe.cpp
radiant/preferences.cpp

index d795b75..e6c5ff6 100644 (file)
@@ -585,7 +585,7 @@ namespace ui {
     alert_response alert(
             Window parent,
             std::string text,
-            std::string title = "NetRadiant",
+            std::string title = RADIANT_NAME,
             alert_type type = alert_type::OK,
             alert_icon icon = alert_icon::Default
     );
index 663ca30..8a7691a 100644 (file)
@@ -816,7 +816,7 @@ void Radiant_Shutdown(){
 }
 
 void Exit(){
-       if ( ConfirmModified( "Exit Radiant" ) ) {
+       if ( ConfirmModified( "Exit " RADIANT_NAME ) ) {
                gtk_main_quit();
        }
 }
@@ -2935,7 +2935,7 @@ WindowPositionTracker g_posXZWnd;
 WindowPositionTracker g_posYZWnd;
 
 static gint mainframe_delete( ui::Widget widget, GdkEvent *event, gpointer data ){
-       if ( ConfirmModified( "Exit Radiant" ) ) {
+       if ( ConfirmModified( "Exit " RADIANT_NAME ) ) {
                gtk_main_quit();
        }
 
index 8e2e026..659308a 100644 (file)
@@ -881,6 +881,7 @@ void Preferences_Save(){
                return;
        }
 
+       // save global preferences
        g_GamesDialog.SavePrefs();
 
        globalOutputStream() << "saving local preferences to " << g_Preferences.m_inipath->str << "\n";
@@ -912,7 +913,7 @@ void PreferencesDialog_showDialog(){
        if ( ConfirmModified( "Edit Preferences" ) && g_Preferences.DoModal() == eIDOK ) {
                if ( !g_restart_required.empty() ) {
                        StringOutputStream message( 256 );
-                       message << "Preference changes require a restart:\n";
+                       message << "Preference changes require a restart:\n\n";
 
                        for ( std::vector<const char*>::iterator i = g_restart_required.begin(); i != g_restart_required.end(); ++i )
                        {