diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py
index f3e01ee9..94076e80 100644
--- a/app/ui/main_app_window.py
+++ b/app/ui/main_app_window.py
@@ -867,6 +867,10 @@ class Application(Gtk.Application):
returns deleted rows list!
"""
+ if self._services_load_spinner.get_property("active"):
+ show_dialog(DialogType.ERROR, self._main_window, get_message("Data loading in progress!"))
+ return
+
selection = view.get_selection()
model, paths = selection.get_selected_rows()
model_name = get_base_model(model).get_name()
@@ -911,10 +915,6 @@ class Application(Gtk.Application):
def delete_services(self, itrs, model, rows):
""" Deleting services """
- if self._services_load_spinner.get_property("active"):
- show_dialog(DialogType.ERROR, self._main_window, get_message("Data loading in progress!"))
- return
-
for index, s_itr in enumerate(get_base_itrs(itrs, model)):
self._services_model.remove(s_itr)
if index % self.DEL_FACTOR == 0:
@@ -1058,6 +1058,8 @@ class Application(Gtk.Application):
if not is_marker:
num += 1
row[Column.FAV_NUM] = 0 if is_marker else num
+
+ self.on_model_changed(model)
yield True
def update_bouquet_list(self):
@@ -1814,7 +1816,7 @@ class Application(Gtk.Application):
def clear_current_data(self):
""" Clearing current data from lists """
- if len(self._services_model) > self.DEL_FACTOR * 100:
+ if len(self._services_model) > self.DEL_FACTOR * 50:
self._wait_dialog.set_text("Deleting data...")
self._bouquets_model.clear()
@@ -2056,6 +2058,7 @@ class Application(Gtk.Application):
yield True
self._fav_view.set_model(self._fav_model)
+ self.on_model_changed(self._fav_model)
self._bouquets_view.set_sensitive(True)
self._bouquets_view.grab_focus()
yield True
diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade
index 479d64bf..58b76a8a 100644
--- a/app/ui/main_window.glade
+++ b/app/ui/main_window.glade
@@ -221,7 +221,6 @@ Author: Dmitriy Yefremov
-