Changeset 5888 for branches/qt-gui_qt4/src/core/licqgui.cpp
- Timestamp:
- 11/28/07 09:26:58 (12 months ago)
- Files:
-
- 1 modified
-
branches/qt-gui_qt4/src/core/licqgui.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/core/licqgui.cpp
r5887 r5888 121 121 // We need to catch that here and tell the Xlib that we 122 122 // ignore it, otherwise Qt's handler will terminate us. :-( 123 if (err->error_code == BadDrawable)123 if (err->error_code == BadDrawable) 124 124 return 0; 125 125 … … 191 191 char* ptr; 192 192 char buf[MAX_FILENAME_LEN]; 193 snprintf(buf, MAX_FILENAME_LEN, "%s /licq_qt-gui.style", BASE_DIR);193 snprintf(buf, MAX_FILENAME_LEN, "%s%sstyle.ini", BASE_DIR, QTGUI_DIR); 194 194 buf[MAX_FILENAME_LEN - 1] = '\0'; 195 195 … … 265 265 266 266 gLog.Info("%s%s configuration.\n", L_INITxSTR, PLUGIN_NAME); 267 snprintf(szTemp, MAX_FILENAME_LEN, "%s /%s", BASE_DIR, QTGUI_CONFIGFILE);267 snprintf(szTemp, MAX_FILENAME_LEN, "%s%s", BASE_DIR, QTGUI_CONFIGFILE); 268 268 szTemp[MAX_FILENAME_LEN - 1] = '\0'; 269 269 CIniFile licqConf; 270 270 if (!licqConf.LoadFile(szTemp)) 271 271 { 272 // File doesn't exist so define sections and write them now so saving won't generate warnings later 272 // File doesn't exist so define sections and write them now 273 // so saving won't generate warnings later 273 274 licqConf.SetFlags(INI_FxALLOWxCREATE); 274 275 licqConf.ReloadFile(); … … 308 309 licqConf.ReadStr("Emoticons", szTemp, Emoticons::DEFAULT_THEME.toLatin1()); 309 310 QStringList emoticonsDirs; 310 emoticonsDirs += QString::fromL atin1(SHARE_DIR) + QTGUI_DIR + EMOTICONS_DIR;311 emoticonsDirs += QString::fromL atin1(BASE_DIR) + QTGUI_DIR + EMOTICONS_DIR;311 emoticonsDirs += QString::fromLocal8Bit(SHARE_DIR) + QTGUI_DIR + EMOTICONS_DIR; 312 emoticonsDirs += QString::fromLocal8Bit(BASE_DIR) + QTGUI_DIR + EMOTICONS_DIR; 312 313 #ifdef USE_KDE 313 314 // emoticons resource added in KDE 3.4 … … 352 353 { 353 354 char szTemp[MAX_FILENAME_LEN]; 354 snprintf(szTemp, MAX_FILENAME_LEN, "%s /%s", BASE_DIR, QTGUI_CONFIGFILE);355 snprintf(szTemp, MAX_FILENAME_LEN, "%s%s", BASE_DIR, QTGUI_CONFIGFILE); 355 356 szTemp[MAX_FILENAME_LEN - 1] = '\0'; 356 357 CIniFile licqConf; … … 387 388 // Save all our options 388 389 char filename[MAX_FILENAME_LEN]; 389 snprintf(filename, MAX_FILENAME_LEN, "%s /%s", BASE_DIR, QTGUI_CONFIGFILE);390 snprintf(filename, MAX_FILENAME_LEN, "%s%s", BASE_DIR, QTGUI_CONFIGFILE); 390 391 filename[MAX_FILENAME_LEN - 1] = '\0'; 391 392 CIniFile licqConf(INI_FxERROR | INI_FxALLOWxCREATE); 392 if (!licqConf.LoadFile(filename)) return; 393 394 if (!licqConf.LoadFile(filename)) 395 return; 393 396 394 397 Config::General::instance()->saveConfiguration(licqConf); … … 1072 1075 { 1073 1076 if (!myLicqDaemon->ViewUrl(url.toLocal8Bit().data())) 1074 WarnUser(parent, tr("Licq is unable to start your browser and open the URL.\nYou will need to start the browser and open the URL manually.")); 1077 WarnUser(parent, 1078 tr("Licq is unable to start your browser and open the URL.\n" 1079 "You will need to start the browser and open the URL manually.")); 1075 1080 } 1076 1081 }
