[gedit] Really fix moving a tab to a new window.



commit e85e1cf6388fb8f4bb01b52ebb0c1b913724ba15
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Jun 25 11:28:23 2010 +0200

    Really fix moving a tab to a new window.

 gedit/gedit-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index c4ba23c..071ff57 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -4651,7 +4651,7 @@ _gedit_window_move_tab_to_new_window (GeditWindow *window,
 	g_return_val_if_fail (GEDIT_IS_WINDOW (window), NULL);
 	g_return_val_if_fail (GEDIT_IS_TAB (tab), NULL);
 	g_return_val_if_fail (gedit_multi_notebook_get_n_notebooks (
-	                        window->priv->multi_notebook) > 1 &&
+	                        window->priv->multi_notebook) > 1 ||
 	                      gedit_multi_notebook_get_n_tabs (
 	                        window->priv->multi_notebook) > 1,
 	                      NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]