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
diff options
context:
space:
mode:
authorllyzs <llyzs.vic@gmail.com>2011-02-02 09:10:16 +0300
committerVic Lee (llyzs) <llyzs@b6cfa94a-2857-405c-b0d6-536ef9fc39e1>2011-02-02 09:10:16 +0300
commit0c486727a6d2b291b0a417e1c16e32ef7bd24a96 (patch)
tree8d11db38e20a2e7d88c6cf67dbde22d9fc3cc2ac /remmina
parent5f6ac00b783ae7e88879db306ec25e5865610910 (diff)
Fix detaching of tabs not working bug
Diffstat (limited to 'remmina')
-rw-r--r--remmina/src/remminaconnectionwindow.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/remmina/src/remminaconnectionwindow.c b/remmina/src/remminaconnectionwindow.c
index a6a07037e..f89e52220 100644
--- a/remmina/src/remminaconnectionwindow.c
+++ b/remmina/src/remminaconnectionwindow.c
@@ -1,6 +1,6 @@
/*
* Remmina - The GTK+ Remote Desktop Client
- * Copyright (C) 2009-2010 Vic Lee
+ * Copyright (C) 2009-2011 Vic Lee
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -2292,19 +2292,24 @@ remmina_connection_object_on_connect (RemminaProtocolWidget *gp, RemminaConnecti
GtkWidget *tab;
gint i;
- cnnwin = remmina_connection_window_find (cnnobj->remmina_file);
-
- if (cnnwin)
+ if (!cnnobj->cnnhld)
{
- cnnhld = cnnwin->priv->cnnhld;
+ cnnwin = remmina_connection_window_find (cnnobj->remmina_file);
+ if (cnnwin)
+ {
+ cnnhld = cnnwin->priv->cnnhld;
+ }
+ else
+ {
+ cnnhld = g_new0 (RemminaConnectionHolder, 1);
+ }
+ cnnobj->cnnhld = cnnhld;
}
else
{
- cnnhld = g_new0 (RemminaConnectionHolder, 1);
+ cnnhld = cnnobj->cnnhld;
}
- cnnobj->cnnhld = cnnhld;
-
cnnobj->connected = TRUE;
remmina_protocol_widget_set_hostkey_func (REMMINA_PROTOCOL_WIDGET (cnnobj->proto),