gui: Fix adding tracks to an existing queue

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2014-06-05 11:05:27 -04:00
parent 9e3399b619
commit 43c8130ecc
1 changed files with 9 additions and 8 deletions

View File

@ -180,8 +180,8 @@ bool Tab :: tab_add_to_queue(unsigned int n)
if (n >= deck :: get_queues().size())
return true;
//Queue *pq = deck :: get(n);
//tab_queue_add(pq);
Queue *pq = deck :: get(n);
tab_queue_add(pq);
return true;
}
@ -521,13 +521,14 @@ void post_init_tabs()
for (it = queue_mapping.begin(); it != queue_mapping.end(); it++)
it->second->on_post_init();
unsigned int tab = 0;
//for (tab = 0; tab < deck::get_queues().size(); tab++) {
// if ((deck :: get(tab)->has_flag(Q_ENABLED)))
// break;
//}
get_widget<Gtk::Notebook>("o_notebook")->set_current_page(tab);
post_init_queue_tabs();
unsigned int tab = 0;
for (tab = 0; tab < deck::get_queues().size(); tab++) {
if ((deck :: get(tab)->has_flag(Q_ENABLED)))
break;
}
get_widget<Gtk::Notebook>("o_notebook")->set_current_page(tab);
}
void cleanup_tabs()