aboutsummaryrefslogtreecommitdiffstats
path: root/core/plugin/gtk/gtk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'core/plugin/gtk/gtk.rb')
-rw-r--r--core/plugin/gtk/gtk.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/plugin/gtk/gtk.rb b/core/plugin/gtk/gtk.rb
index ad49240c..1af5c617 100644
--- a/core/plugin/gtk/gtk.rb
+++ b/core/plugin/gtk/gtk.rb
@@ -324,7 +324,8 @@ Plugin.create :gtk do
pane = widgetof(i_pane)
tab = widgetof(i_tab)
if pane and tab
- pane.page = pane.get_tab_pos_by_tab(tab) end end end
+ pagenum = pane.get_tab_pos_by_tab(tab)
+ pane.page = pagenum if pagenum end end end
filter_gui_postbox_input_editable do |i_postbox, editable|
postbox = widgetof(i_postbox)