allow to delete now-playing playlists from their context menus (we already allow to do such a thing with middle click so we should be ok...) - Fixes issue #1444

This commit is contained in:
Paweł Bara 2011-02-15 17:53:21 +00:00
parent 88e0beeea9
commit 29056d944c

View File

@ -60,7 +60,7 @@ void PlaylistTabBar::SetManager(PlaylistManager *manager) {
void PlaylistTabBar::contextMenuEvent(QContextMenuEvent* e) {
menu_index_ = tabAt(e->pos());
rename_->setEnabled(menu_index_ != -1);
remove_->setEnabled(menu_index_ != -1 && count() > 1 && menu_index_ != index_of(manager_->active_id()));
remove_->setEnabled(menu_index_ != -1 && count() > 1);
save_->setEnabled(menu_index_ != -1);
menu_->popup(e->globalPos());