diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 84369a6a..fd278d37 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -215,7 +215,6 @@ class Application(Gtk.Application): self._telnet_tool_button = builder.get_object("telnet_tool_button") # App info self._app_info_box = builder.get_object("app_info_box") - self._app_info_box.bind_property("visible", self._status_bar_box, "visible", 4) self._app_info_box.bind_property("visible", builder.get_object("main_paned"), "visible", 4) self._app_info_box.bind_property("visible", builder.get_object("toolbar_extra_box"), "visible", 4) self._app_info_box.bind_property("visible", builder.get_object("toolbar_tools_box"), "visible", 4) @@ -899,9 +898,9 @@ class Application(Gtk.Application): def on_view_drag_begin(self, view, context): """ Selects a row under the cursor in the view at the dragging beginning. """ - selection = view.get_selection() - if selection.count_selected_rows() > 1: - view.do_toggle_cursor_row(view) + path, column = view.get_cursor() + if path: + view.get_selection().select_path(path) def on_view_drag_data_get(self, view, drag_context, data, info, time): selection = self.get_selection(view) @@ -985,12 +984,12 @@ class Application(Gtk.Application): return model = get_base_model(view.get_model()) - dest_index = 0 + dest_index = len(model) + if drop_info: path, position = drop_info - dest_iter = model.get_iter(path) - if dest_iter: - dest_index = model.get_value(dest_iter, 0) + dest_index = path.get_indices()[0] + fav_bouquet = self._bouquets[bq_selected] itrs = itr_str.split(",") @@ -1012,6 +1011,7 @@ class Application(Gtk.Application): for row in in_rows: model.insert(dest_index, row) fav_bouquet.insert(dest_index, row[Column.FAV_ID]) + dest_index += 1 for in_itr in in_itrs: del fav_bouquet[int(model.get_path(in_itr)[0])] model.remove(in_itr) diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade index 03d484e1..6c665c5e 100644 --- a/app/ui/main_window.glade +++ b/app/ui/main_window.glade @@ -1761,7 +1761,6 @@ Author: Dmitriy Yefremov Service True 0.5 - True 3 @@ -1809,7 +1808,6 @@ Author: Dmitriy Yefremov Package True 0.5 - True 6 @@ -1830,7 +1828,6 @@ Author: Dmitriy Yefremov Type True 0.5 - True 7 @@ -1849,7 +1846,6 @@ Author: Dmitriy Yefremov 25 Picon 0.5 - True 9 @@ -1881,7 +1877,6 @@ Author: Dmitriy Yefremov SID True 0.5 - True 10 @@ -1901,7 +1896,6 @@ Author: Dmitriy Yefremov Freq True 0.5 - True 11 @@ -1921,7 +1915,6 @@ Author: Dmitriy Yefremov Rate True 0.5 - True 12 @@ -1941,7 +1934,6 @@ Author: Dmitriy Yefremov Pol True 0.5 - True 13 @@ -1961,7 +1953,6 @@ Author: Dmitriy Yefremov FEC True 0.5 - True 14 @@ -1981,7 +1972,6 @@ Author: Dmitriy Yefremov System True 0.5 - True 15 @@ -2766,6 +2756,7 @@ Author: Dmitriy Yefremov 28 + True False 1 1 @@ -2803,6 +2794,21 @@ Author: Dmitriy Yefremov 1 + + + True + False + Current IP: + + + + + + False + True + 2 + + True @@ -2810,21 +2816,6 @@ Author: Dmitriy Yefremov 0 - - - True - False - Current IP: - - - - - - False - True - 3 - - False