mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-23 22:25:11 +02:00
Set title of config dialog to selected page on non-mac
This commit is contained in:
@@ -25,6 +25,7 @@ public slots:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
stack->setCurrentIndex(idx - 1);
|
stack->setCurrentIndex(idx - 1);
|
||||||
|
dialog.data()->setWindowTitle(action->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
void accepted() {
|
void accepted() {
|
||||||
@@ -147,6 +148,7 @@ void QToolbarTabDialog::setCurrentIndex(int index)
|
|||||||
|
|
||||||
// 1 spacer item before the first action
|
// 1 spacer item before the first action
|
||||||
QAction* toCheck = pimpl->toolbar->actions().at(index + 1);
|
QAction* toCheck = pimpl->toolbar->actions().at(index + 1);
|
||||||
|
pimpl->dialog.data()->setWindowTitle(toCheck->text());
|
||||||
if (pimpl->actionGroup->checkedAction() != toCheck)
|
if (pimpl->actionGroup->checkedAction() != toCheck)
|
||||||
toCheck->setChecked(true);
|
toCheck->setChecked(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user