aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-search/MainUI.cpp3
-rw-r--r--lumina-search/main.cpp8
2 files changed, 2 insertions, 9 deletions
diff --git a/lumina-search/MainUI.cpp b/lumina-search/MainUI.cpp
index 2a17217d..6597f589 100644
--- a/lumina-search/MainUI.cpp
+++ b/lumina-search/MainUI.cpp
@@ -11,7 +11,7 @@
MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){
ui->setupUi(this); //load the designer file
- setupIcons();
+ //setupIcons();
ui->radio_apps->setChecked(true); //always default to starting here
ui->tool_stop->setVisible(false); //no search running initially
ui->tool_configure->setVisible(false); //app search initially set
@@ -50,6 +50,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){
this->show();
workthread->start();
+ QTimer::singleShot(0,this, SLOT(setupIcons()) );
}
MainUI::~MainUI(){
diff --git a/lumina-search/main.cpp b/lumina-search/main.cpp
index 3739cf70..305c388b 100644
--- a/lumina-search/main.cpp
+++ b/lumina-search/main.cpp
@@ -17,14 +17,6 @@ int main(int argc, char ** argv)
//qDebug() << "Load Translations...";
a.setApplicationName("Search for...");
LUtils::LoadTranslation(&a, "lumina-search");
- /*QTranslator translator;
- QLocale mylocale;
- QString langCode = mylocale.name();
-
- if ( ! QFile::exists(LOS::LuminaShare()+"i18n/lumina-search_" + langCode + ".qm" ) ) langCode.truncate(langCode.indexOf("_"));
- translator.load( QString("lumina-search_") + langCode, LOS::LuminaShare()+"i18n/" );
- a.installTranslator( &translator );
- qDebug() << "Locale:" << langCode;*/
MainUI w;
QObject::connect(&theme,SIGNAL(updateIcons()), &w, SLOT(setupIcons()) );
bgstack15