#include "quassel.h"
int main(int argc, char **argv) {
+ Q_INIT_RESOURCE(i18n);
// Setup build information and version string
# include "version.gen"
#ifdef HAVE_KDE
// We need to init KCmdLineArgs first
- // TODO: build an AboutData class to replace our aboutDlg strings
- KAboutData aboutData(argv[0], 0, ki18n("Quassel IRC"), Quassel::buildInfo().plainVersionString.toUtf8());
+ // TODO: build an AboutData compat class to replace our aboutDlg strings
+ KAboutData aboutData("quassel", 0, ki18n("Quassel IRC"), Quassel::buildInfo().plainVersionString.toUtf8());
aboutData.setOrganizationDomain(Quassel::buildInfo().organizationDomain.toUtf8());
KCmdLineArgs::init(argc, argv, &aboutData);
#endif
QString Quassel::_coreDumpFileName;
Quassel::Quassel() {
- Q_INIT_RESOURCE(i18n);
-
// We catch SIGTERM and SIGINT (caused by Ctrl+C) to graceful shutdown Quassel.
signal(SIGTERM, handleSignal);
signal(SIGINT, handleSignal);
registerMetaTypes();
- QCoreApplication::setApplicationName(buildInfo().applicationName);
- QCoreApplication::setOrganizationName(buildInfo().organizationName);
- QCoreApplication::setOrganizationDomain(buildInfo().organizationDomain);
-
Network::setDefaultCodecForServer("ISO-8859-1");
Network::setDefaultCodecForEncoding("UTF-8");
Network::setDefaultCodecForDecoding("ISO-8859-15");
QtUiSettings s;
s.setValue("MainWinSize", size());
s.setValue("MainWinPos", pos());
- s.setValue("MainWinState", saveState()); qDebug() << "fini!";
+ s.setValue("MainWinState", saveState());
}
void MainWin::updateIcon() {