[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/knetattach
From:       Volker Lanz <vl () fidra ! de>
Date:       2009-08-23 15:47:06
Message-ID: 1251042426.336348.19681.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1014689 by vlanz:

Try to select the locale of the current system in the locale combo box so that
users who have the same locale on most or all of their boxes don't have to
re-select it again and again.


 M  +2 -1      knetattach.cpp  


--- trunk/KDE/kdebase/runtime/knetattach/knetattach.cpp #1014688:1014689
@@ -72,7 +72,8 @@
     }
     _encoding->clear();
     _encoding->addItems(KGlobal::charsets()->descriptiveEncodingNames());
-    _encoding->setCurrentIndex(0);    
+    const int codecForLocaleIdx = \
_encoding->findText(QTextCodec::codecForLocale()->name(), Qt::MatchContains); +    \
_encoding->setCurrentIndex(codecForLocaleIdx != -1 ? codecForLocaleIdx : 0);  }
 
 void KNetAttach::slotHelpClicked()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic