1
0
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:
Leo Franchi
2012-09-04 12:11:57 -04:00
parent ca848928d9
commit 599a7d3ef2

View File

@@ -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);
}