projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark taskbar entry by default when using knotify
[quassel.git]
/
src
/
common
/
quassel.cpp
diff --git
a/src/common/quassel.cpp
b/src/common/quassel.cpp
index
84301f9
..
1e6e1ed
100644
(file)
--- a/
src/common/quassel.cpp
+++ b/
src/common/quassel.cpp
@@
-42,8
+42,6
@@
bool Quassel::DEBUG = false;
QString Quassel::_coreDumpFileName;
Quassel::Quassel() {
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);
// We catch SIGTERM and SIGINT (caused by Ctrl+C) to graceful shutdown Quassel.
signal(SIGTERM, handleSignal);
signal(SIGINT, handleSignal);
@@
-58,11
+56,6
@@
Quassel::Quassel() {
# endif
#endif
# endif
#endif
- _cliParser = new CliParser();
-
- // put shared client&core arguments here
- cliParser()->addSwitch("debug",'d', tr("Enable debug output"));
- cliParser()->addSwitch("help",'h', tr("Display this help and exit"));
}
Quassel::~Quassel() {
}
Quassel::~Quassel() {
@@
-78,18
+71,15
@@
bool Quassel::init() {
registerMetaTypes();
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");
Network::setDefaultCodecForServer("ISO-8859-1");
Network::setDefaultCodecForEncoding("UTF-8");
Network::setDefaultCodecForDecoding("ISO-8859-15");
- if(
!cliParser()->parse(QCoreApplication::arguments()) ||
isOptionSet("help")) {
+ if(isOptionSet("help")) {
cliParser()->usage();
return false;
}
cliParser()->usage();
return false;
}
+
DEBUG = isOptionSet("debug");
return true;
}
DEBUG = isOptionSet("debug");
return true;
}