diff --git a/gui/queue.cpp b/gui/queue.cpp index 105c65ec..3580f58c 100644 --- a/gui/queue.cpp +++ b/gui/queue.cpp @@ -239,8 +239,7 @@ static void renumber_queues() void on_pq_created(Queue *pq, unsigned int num) { - QueueTab *tab = new QueueTab(pq, num); - tab->on_post_init(); + new QueueTab(pq, num); } static void on_page_reordered(Gtk::Widget *page, int num) diff --git a/gui/tabs.cpp b/gui/tabs.cpp index 88432fe0..59f230f5 100644 --- a/gui/tabs.cpp +++ b/gui/tabs.cpp @@ -219,8 +219,6 @@ void Tab :: tab_ban_selected() * */ -void Tab :: on_post_init() {} - bool Tab :: on_key_press_event(const std::string &key) { if (key >= "0" && key <= "9") @@ -465,10 +463,6 @@ void init_tabs() void post_init_tabs() { - std::map::iterator it; - for (it = queue_mapping.begin(); it != queue_mapping.end(); it++) - it->second->on_post_init(); - post_init_queue_tabs(); unsigned int tab = 0; diff --git a/include/gui/tabs.h b/include/gui/tabs.h index 24074b43..426ac255 100644 --- a/include/gui/tabs.h +++ b/include/gui/tabs.h @@ -72,7 +72,6 @@ public: /** * internal callback functions that can be overridden if necessary */ - virtual void on_post_init(); virtual bool on_key_press_event(const std::string &); virtual void on_show_rc_menu();