瀏覽代碼

UI: Fix Delete key not working on scenes/sources

This commit fixes two regressions introduced by the modular UI (commit
25bb8a444fb3a7ca6c19a429f2d89e83a6ddb823):

 - the Delete key no longer works in the scene list
 - the Delete key no longer works working in the source list

This commit also enables the Delete key on sources that were selected by
clicking on them in the preview, which addresses Mantis Bug 576
(https://obsproject.com/mantis/view.php?id=576).
Ryan Foster 8 年之前
父節點
當前提交
c21d83c2f3
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      UI/forms/OBSBasic.ui

+ 3 - 0
UI/forms/OBSBasic.ui

@@ -86,6 +86,7 @@
             <property name="contextMenuPolicy">
             <property name="contextMenuPolicy">
              <enum>Qt::CustomContextMenu</enum>
              <enum>Qt::CustomContextMenu</enum>
             </property>
             </property>
+            <addaction name="actionRemoveSource"/>
            </widget>
            </widget>
           </item>
           </item>
          </layout>
          </layout>
@@ -400,6 +401,7 @@
           <property name="defaultDropAction">
           <property name="defaultDropAction">
            <enum>Qt::TargetMoveAction</enum>
            <enum>Qt::TargetMoveAction</enum>
           </property>
           </property>
+          <addaction name="actionRemoveScene"/>
          </widget>
          </widget>
         </item>
         </item>
         <item>
         <item>
@@ -531,6 +533,7 @@
           <property name="selectionMode">
           <property name="selectionMode">
            <enum>QAbstractItemView::ExtendedSelection</enum>
            <enum>QAbstractItemView::ExtendedSelection</enum>
           </property>
           </property>
+          <addaction name="actionRemoveSource"/>
          </widget>
          </widget>
         </item>
         </item>
         <item>
         <item>