Skip to content

Commit

Permalink
UI: Disable paste filters unless a source is selected
Browse files Browse the repository at this point in the history
Fixes the paste filters right click option to behave like copy.

See: https://obsproject.com/mantis/view.php?id=1220
and obsproject#1261
  • Loading branch information
Andersama committed Apr 22, 2018
1 parent 30d967e commit 22520c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UI/window-basic-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4024,6 +4024,8 @@ void OBSBasic::CreateSourcePopupMenu(QListWidgetItem *item, bool preview)

ui->actionCopyFilters->setEnabled(true);
ui->actionCopySource->setEnabled(true);
} else {
ui->actionPasteFilters->setEnabled(false);
}

popup.exec(QCursor::pos());
Expand Down

0 comments on commit 22520c2

Please sign in to comment.