瀏覽代碼

Add "Rename" entry to scenes context menu

Palana 11 年之前
父節點
當前提交
9465a8c437
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      obs/window-basic-main.cpp

+ 5 - 1
obs/window-basic-main.cpp

@@ -1581,10 +1581,14 @@ void OBSBasic::on_scenes_customContextMenuRequested(const QPoint &pos)
 	popup.addAction(QTStr("Add"),
 	popup.addAction(QTStr("Add"),
 			this, SLOT(on_actionAddScene_triggered()));
 			this, SLOT(on_actionAddScene_triggered()));
 
 
-	if (item)
+	if (item) {
+		popup.addSeparator();
+		popup.addAction(QTStr("Rename"),
+				this, SLOT(EditSceneName()));
 		popup.addAction(QTStr("Remove"),
 		popup.addAction(QTStr("Remove"),
 				this, SLOT(RemoveSelectedScene()),
 				this, SLOT(RemoveSelectedScene()),
 				DeleteKeys.front());
 				DeleteKeys.front());
+	}
 
 
 	popup.exec(QCursor::pos());
 	popup.exec(QCursor::pos());
 }
 }