mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-22 21:54:00 +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;
|
||||
|
||||
stack->setCurrentIndex(idx - 1);
|
||||
dialog.data()->setWindowTitle(action->text());
|
||||
}
|
||||
|
||||
void accepted() {
|
||||
@@ -147,6 +148,7 @@ void QToolbarTabDialog::setCurrentIndex(int index)
|
||||
|
||||
// 1 spacer item before the first action
|
||||
QAction* toCheck = pimpl->toolbar->actions().at(index + 1);
|
||||
pimpl->dialog.data()->setWindowTitle(toCheck->text());
|
||||
if (pimpl->actionGroup->checkedAction() != toCheck)
|
||||
toCheck->setChecked(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user