From fc78db2c60bb949a37031ae556595a1b6f63fb16 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 26 Oct 2014 09:28:55 +0530 Subject: [PATCH] ... --- src/calibre/gui2/progress_indicator/QProgressIndicator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp index dca3b0828e..85da5453de 100644 --- a/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp +++ b/src/calibre/gui2/progress_indicator/QProgressIndicator.cpp @@ -164,7 +164,7 @@ class CalibreStyle: public QProxyStyle { setObjectName(QString("calibre")); desktop_environment = detectDesktopEnvironment(); button_layout = static_cast(QProxyStyle::styleHint(SH_DialogButtonLayout)); - if (desktop_environment == QString::fromLatin1("GNOME") || desktop_environment == QString::fromLatin1("MATE") || desktop_environment == QString::fromLatin1("UNITY")) + if (QLatin1String("GNOME") == desktop_environment || QLatin1String("MATE") == desktop_environment || QLatin1String("UNITY") == desktop_environment) button_layout = QDialogButtonBox::GnomeLayout; }