Skip to content

Commit

Permalink
Let's handle log lines with missing newline char
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jan 15, 2017
1 parent e444622 commit c12751a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/StelLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ void StelLogger::debugLogHandler(QtMsgType type, const QMessageLogContext& ctx,

void StelLogger::writeLog(QString msg)
{
if (!msg.contains('\n'))
msg.append(QLatin1Char('\n'));

fileMutex.lock();
logFile.write(qPrintable(msg), msg.size());
log += msg;
Expand Down
2 changes: 2 additions & 0 deletions util/mac_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def processFrameworks():
allFramework = []
# First, copy over the stellarium dependencies
frameworks = getListOfLinkedQtFrameworksForFile(os.path.join(installDirectory, 'MacOS/stellarium'))
# QtOpenGL is required!
frameworks.append('QtOpenGL');
# QtMultimedia?
if 'QtMultimedia' in ' '.join(frameworks):
frameworks.append(frameworks[-1].replace('QtMultimedia','QtMultimediaWidgets'))
Expand Down

0 comments on commit c12751a

Please sign in to comment.