On Sun, May 29, 2016 at 11:03 PM, Mihai Moldovan <ionic@ionic.de> wrote:
On 23.05.2016 02:14 PM, Mike DePaulo wrote:
[...] I've tried 2 different approaches, you can see them below. Ignore the x2goDebug line.
diff --git a/src/onmainwindow.cpp b/src/onmainwindow.cpp index 925085b..a1d92a8 100644 --- a/src/onmainwindow.cpp +++ b/src/onmainwindow.cpp @@ -10292,6 +10292,8 @@ void ONMainWindow::generateEtcFiles() /* This may need some sanitization, i.e., appDir could potentially include whitespace. */ <<appDir<<"/sftp-server\n"; #endif
- x2goDebug<<"LogLevel DEBUG1";
Force a flush of the current line by appending a newline, like so: out << "LogLevel DEBUG1\n";
Thanks Nable and Mihai; I fixed it and pushed the commit. I think the problem was that the prior line, which you cannot see due to the #ifdef, lacked a newline. I still added the newline to this new line though. And Salvador, I'll try your advice out. -Mike