diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py
index 0c5073c2..2884c9ef 100644
--- a/app/ui/main_app_window.py
+++ b/app/ui/main_app_window.py
@@ -211,7 +211,6 @@ class Application(Gtk.Application):
self._bq_name_label = builder.get_object("bq_name_label")
# 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("right_header_box"), "visible", 4)
self._app_info_box.bind_property("visible", builder.get_object("left_header_box"), "visible", 4)
@@ -852,9 +851,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)
@@ -938,12 +937,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(",")
@@ -965,6 +964,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)
@@ -1976,7 +1976,7 @@ class Application(Gtk.Application):
full = not state & Gdk.WindowState.FULLSCREEN
self._main_data_box.set_visible(full)
self._player_tool_bar.set_visible(full)
- self._status_bar_box.set_visible(full and not self._app_info_box.get_visible())
+ self._status_bar_box.set_visible(full)
if not state & Gdk.WindowState.ICONIFIED and self._links_transmitter:
self._links_transmitter.hide()
diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade
index 538212b9..10ea4af3 100644
--- a/app/ui/main_window.glade
+++ b/app/ui/main_window.glade
@@ -1856,7 +1856,6 @@ Author: Dmitriy Yefremov
Service
True
0.5
- True
3