Fix CI
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
c1855c6ce3
commit
8c30cb3706
@ -645,7 +645,6 @@ InstancePtr InstanceList::loadInstance(const InstanceId& id)
|
|||||||
return inst;
|
return inst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void InstanceList::increaseGroupCount(const QString& group)
|
void InstanceList::increaseGroupCount(const QString& group)
|
||||||
{
|
{
|
||||||
if (group.isEmpty())
|
if (group.isEmpty())
|
||||||
|
@ -106,7 +106,7 @@ class InstanceList : public QAbstractListModel {
|
|||||||
bool isGroupCollapsed(const QString& groupName);
|
bool isGroupCollapsed(const QString& groupName);
|
||||||
|
|
||||||
GroupId getInstanceGroup(const InstanceId& id) const;
|
GroupId getInstanceGroup(const InstanceId& id) const;
|
||||||
void setInstanceGroup(const InstanceId& id, const GroupId& name);
|
void setInstanceGroup(const InstanceId& id, GroupId name);
|
||||||
|
|
||||||
void deleteGroup(const GroupId& name);
|
void deleteGroup(const GroupId& name);
|
||||||
void renameGroup(const GroupId& src, const GroupId& dst);
|
void renameGroup(const GroupId& src, const GroupId& dst);
|
||||||
|
@ -1149,12 +1149,13 @@ void MainWindow::deleteGroup(QString group)
|
|||||||
Q_ASSERT(!group.isEmpty());
|
Q_ASSERT(!group.isEmpty());
|
||||||
|
|
||||||
const int reply = QMessageBox::question(this, tr("Delete group"), tr("Are you sure you want to delete the group '%1'?").arg(group),
|
const int reply = QMessageBox::question(this, tr("Delete group"), tr("Are you sure you want to delete the group '%1'?").arg(group),
|
||||||
QMessageBox::Yes | QMessageBox::No);
|
QMessageBox::Yes | QMessageBox::No);
|
||||||
if (reply == QMessageBox::Yes)
|
if (reply == QMessageBox::Yes)
|
||||||
APPLICATION->instances()->deleteGroup(group);
|
APPLICATION->instances()->deleteGroup(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::renameGroup(QString group) {
|
void MainWindow::renameGroup(QString group)
|
||||||
|
{
|
||||||
Q_ASSERT(!group.isEmpty());
|
Q_ASSERT(!group.isEmpty());
|
||||||
|
|
||||||
QString name = QInputDialog::getText(this, tr("Rename group"), tr("Enter a new group name."), QLineEdit::Normal, group);
|
QString name = QInputDialog::getText(this, tr("Rename group"), tr("Enter a new group name."), QLineEdit::Normal, group);
|
||||||
|
Loading…
Reference in New Issue
Block a user