Add a different label for the mavericks shortcut settings.

Fixes issue #4002
This commit is contained in:
John Maguire 2014-04-02 16:19:35 +02:00
parent 4ed6f94211
commit 51385cc801
2 changed files with 21 additions and 0 deletions

View File

@ -107,6 +107,11 @@ void GlobalShortcutsSettingsPage::Load() {
}
ui_->mac_container->setVisible(!manager->IsMacAccessibilityEnabled());
#ifdef Q_OS_DARWIN
qint32 mac_version = Utilities::GetMacVersion();
ui_->mac_label->setVisible(mac_version < 9);
ui_->mac_label_mavericks->setVisible(mac_version >= 9);
#endif // Q_OS_DARWIN
}
void GlobalShortcutsSettingsPage::SetShortcut(const QString& id,

View File

@ -72,6 +72,22 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mac_label_mavericks">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>You need to launch System Preferences and allow Clementine to &quot;&lt;span style=&quot;font-style:italic&quot;&gt;control your computer&lt;/span&gt;&quot; to use global shortcuts in Clementine.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="mac_open">
<property name="text">