Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormyheroyuki <myheroyuki@outlook.com>2023-08-10 17:55:23 +0300
committermyheroyuki <myheroyuki@outlook.com>2023-08-10 17:55:23 +0300
commitd78e91f9feed25bff68e22dfbd5bee5abf894aaa (patch)
tree652320370f673cb64d16e1ea4f38afff2b980998 /src
parent7836eca212dc5184390cc59339d37c795df222d6 (diff)
Save toggle options when duplicating connection
Diffstat (limited to 'src')
-rw-r--r--src/rcw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rcw.c b/src/rcw.c
index cd1c51b20..6ecc4468d 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -2129,6 +2129,8 @@ static void rcw_toolbar_duplicate(GtkToolItem *toggle, RemminaConnectionWindow *
return;
if (!(cnnobj = rcw_get_visible_cnnobj(cnnwin))) return;
+ remmina_file_save(cnnobj->remmina_file);
+
remmina_exec_command(REMMINA_COMMAND_CONNECT, cnnobj->remmina_file->filename);
}
@@ -2305,8 +2307,9 @@ static void rcw_toolbar_grab(GtkToolItem *toggle, RemminaConnectionWindow *cnnwi
if (!(cnnobj = rcw_get_visible_cnnobj(cnnwin))) return;
capture = gtk_toggle_tool_button_get_active(GTK_TOGGLE_TOOL_BUTTON(toggle));
- remmina_file_set_int(cnnobj->remmina_file, "keyboard_grab", capture);
+
if (capture && cnnobj->connected) {
+ remmina_file_set_int(cnnobj->remmina_file, "keyboard_grab", capture);
#if DEBUG_KB_GRABBING
printf("DEBUG_KB_GRABBING: Grabbing for button\n");
#endif