未验证 提交 d818377c 编写于 作者: J Jim 提交者: GitHub

Merge pull request #1333 from SuslikV/patch-8

UI: If group's name exist, start it from 2
......@@ -640,15 +640,15 @@ Qt::DropActions SourceTreeModel::supportedDropActions() const
QString SourceTreeModel::GetNewGroupName()
{
OBSScene scene = GetCurrentScene();
QString name;
QString name = QTStr("Group");
int i = 1;
int i = 2;
for (;;) {
name = QTStr("Basic.Main.Group").arg(QString::number(i++));
obs_sceneitem_t *group = obs_scene_get_group(scene,
QT_TO_UTF8(name));
if (!group)
break;
name = QTStr("Basic.Main.Group").arg(QString::number(i++));
}
return name;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册