Use GNOME dialog button order if XDG_CURRENT_DESKTOP is set to CINNAMON

This commit is contained in:
Kovid Goyal 2014-10-27 01:11:47 +05:30
parent f875b50bcf
commit 12c9fccc2d

View File

@ -164,7 +164,7 @@ class CalibreStyle: public QProxyStyle {
setObjectName(QString("calibre"));
desktop_environment = detectDesktopEnvironment();
button_layout = static_cast<QDialogButtonBox::ButtonLayout>(QProxyStyle::styleHint(SH_DialogButtonLayout));
if (QLatin1String("GNOME") == desktop_environment || QLatin1String("MATE") == desktop_environment || QLatin1String("UNITY") == desktop_environment)
if (QLatin1String("GNOME") == desktop_environment || QLatin1String("MATE") == desktop_environment || QLatin1String("UNITY") == desktop_environment || QLatin1String("CINNAMON") == desktop_environment)
button_layout = QDialogButtonBox::GnomeLayout;
}