diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-23 09:47:28 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-23 09:47:28 +0000 |
commit | e17e60ce3aadc6ef29cfc4db48562e6723dac67d (patch) | |
tree | e7f2d797d85f139e00367f046a09a64a62800d60 /gtk/main.c | |
parent | 633d7a8cabfb06aeb9fc2a63ec783e45afce4d12 (diff) |
Check if changing to another profile in change_configuration_profile()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36830 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/main.c')
-rw-r--r-- | gtk/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/main.c b/gtk/main.c index 3eecc5ea52..c94d3f81eb 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -3701,6 +3701,11 @@ void change_configuration_profile (const gchar *profile_name) } } + /* Then check if changing to another profile */ + if (profile_name && strcmp (profile_name, get_profile_name()) == 0) { + return; + } + /* Get the current geometry, before writing it to disk */ main_save_window_geometry(top_level); |