use default constructor for QLocale, not ::system; refs #66

master
Marc Wäckerlin 13 years ago
parent e54cd2207b
commit c6de182cd7
  1. 2
      swisssurfer/src/editbookmarks.ui
  2. 4
      swisssurfer/src/main.cxx

@ -71,7 +71,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="selectionMode"> <property name="selectionMode">
<enum>QAbstractItemView::ContiguousSelection</enum> <enum>QAbstractItemView::ExtendedSelection</enum>
</property> </property>
</widget> </widget>
</item> </item>

@ -254,10 +254,10 @@ int main(int argv, char** argc) try {
app.setApplicationVersion(VERSION); app.setApplicationVersion(VERSION);
QTranslator qtTranslator; QTranslator qtTranslator;
if (env.contains("LANGUAGE")) QLocale::setDefault(env["LANGUAGE"]); if (env.contains("LANGUAGE")) QLocale::setDefault(env["LANGUAGE"]);
qtTranslator.load(":/language/qt_" + QLocale::system().name()); qtTranslator.load(":/language/qt_" + QLocale().name());
app.installTranslator(&qtTranslator); app.installTranslator(&qtTranslator);
QTranslator appTranslator; QTranslator appTranslator;
appTranslator.load(":/language/swisssurfer_"+ QLocale::system().name()); appTranslator.load(":/language/swisssurfer_"+ QLocale().name());
app.installTranslator(&appTranslator); app.installTranslator(&appTranslator);
//............................................................................ //............................................................................
if (env["PROXY_TYPE"]=="http") if (env["PROXY_TYPE"]=="http")

Loading…
Cancel
Save