From bff1b59055aaba5927b1e2fc0c53f72d0b43a2df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Mon, 25 Jan 2016 02:50:51 +0100 Subject: [PATCH] Removed redundant method --- src/kernel/kernel.cpp | 15 +++++---------- src/kernel/kernel.h | 1 - 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp index dbe7359..d67aced 100644 --- a/src/kernel/kernel.cpp +++ b/src/kernel/kernel.cpp @@ -139,7 +139,7 @@ QKernel::QKernel(int argc, char **argv) q.mkpath(getRemoteDir()); } - info_messages = TRUE; + info_messages = actionInfo_messages->isChecked(); wait_for_info = FALSE; setWindowTitle(PACKAGE_NAME); @@ -150,11 +150,15 @@ QKernel::QKernel(int argc, char **argv) freeINTid = 1; ActiveConnections = 0; strcpy(LockPasswd, ""); + loadConfig(getConfigFilePath()); + RunNetModule(); Net_Notify = new QSocketNotifier(net_sock, QSocketNotifier::Read, this); connect(Net_Notify, SIGNAL(activated(int)), this, SLOT(NetMessage())); + + WriteMessage("\n " PACKAGE_STRING ": READY \n"); } QString QKernel::getConfigFilePath() @@ -912,14 +916,6 @@ void QKernel::on_actionUnlock_console_triggered() } } -/** - * Writes init message in kernel - */ -void QKernel::InitMessage() -{ - WriteMessage("\n " PACKAGE_STRING ": READY \n"); -} - /** * Finds Interpreter by its socket * @param _id ID of the socket @@ -1199,7 +1195,6 @@ int main(int argc, char **argv) QApplication * app = new QApplication(argc, argv); QKernel kernel(argc, argv); kernel.show(); - kernel.InitMessage(); return app->exec(); } diff --git a/src/kernel/kernel.h b/src/kernel/kernel.h index 96e6ced..18478a9 100644 --- a/src/kernel/kernel.h +++ b/src/kernel/kernel.h @@ -104,7 +104,6 @@ public: QKernel(int argc, char **argv); void WriteMessage(char* msg); - void InitMessage(); public slots: void NetMessage(); -- 2.30.2