From 599a7d3ef2aef6b1da3f268d4adfed4682becb9b Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 4 Sep 2012 12:11:57 -0400 Subject: [PATCH] Set title of config dialog to selected page on non-mac --- src/libtomahawk/thirdparty/Qocoa/qtoolbartabdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libtomahawk/thirdparty/Qocoa/qtoolbartabdialog.cpp b/src/libtomahawk/thirdparty/Qocoa/qtoolbartabdialog.cpp index 4d7419915..f9feed636 100644 --- a/src/libtomahawk/thirdparty/Qocoa/qtoolbartabdialog.cpp +++ b/src/libtomahawk/thirdparty/Qocoa/qtoolbartabdialog.cpp @@ -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); }