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/rcw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcw.c')
-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