Skip to content
Snippets Groups Projects
Commit bef42fb1 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

mainapp: remove log to vs console

This should be added directly to the logger in jamid.

Change-Id: I5cc2d1b8e2767325d8228964bcc27c266d12ad43
parent 8a486a64
No related branches found
No related tags found
No related merge requests found
......@@ -77,19 +77,6 @@ ScreenInfo::setCurrentFocusWindow(QWindow* window)
}
}
void
MainApplication::vsConsoleDebug()
{
#ifdef _MSC_VER
// Print debug to output window if using VS.
QObject::connect(&lrcInstance_->behaviorController(),
&lrc::api::BehaviorController::debugMessageReceived,
[](const QString& message) {
OutputDebugStringA((message + "\n").toStdString().c_str());
});
#endif
}
MainApplication::MainApplication(int& argc, char** argv)
: QApplication(argc, argv)
{
......@@ -166,10 +153,6 @@ MainApplication::init()
[this] { engine_->quit(); },
Qt::DirectConnection);
if (runOptions_[Option::DebugToConsole].toBool()) {
vsConsoleDebug();
}
auto downloadPath = settingsManager_->getValue(Settings::Key::DownloadPath);
auto allowTransferFromUntrusted = settingsManager_->getValue(Settings::Key::AllowFromUntrusted)
.toBool();
......
......@@ -71,7 +71,6 @@ public:
enum class Option {
StartMinimized = 0,
Debug,
DebugToConsole,
UpdateUrl,
MuteJamid,
TerminationRequested,
......@@ -98,7 +97,6 @@ Q_SIGNALS:
void closeRequested();
private:
void vsConsoleDebug();
void initLrc(const QString& downloadUrl, ConnectivityMonitor* cm, bool logDaemon);
void parseArguments();
void setApplicationFont();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment