From: Rafał Długołęcki Date: Mon, 25 Jan 2016 01:50:51 +0000 (+0100) Subject: Removed redundant method X-Git-Tag: 3.4-b1~43 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=bff1b59055aaba5927b1e2fc0c53f72d0b43a2df;p=vlp.git Removed redundant method --- 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();