UI: Don't create sources popup menu if no scenes

Closes jp9000/obs-studio#499
master
bla 2016-01-02 21:01:48 -08:00 committed by jp9000
parent 832043fc7f
commit f32f65bb1f
1 changed files with 2 additions and 1 deletions

View File

@ -2687,6 +2687,7 @@ void OBSBasic::CreateSourcePopupMenu(QListWidgetItem *item, bool preview)
void OBSBasic::on_sources_customContextMenuRequested(const QPoint &pos) void OBSBasic::on_sources_customContextMenuRequested(const QPoint &pos)
{ {
if (ui->scenes->count())
CreateSourcePopupMenu(ui->sources->itemAt(pos), false); CreateSourcePopupMenu(ui->sources->itemAt(pos), false);
} }