From 5c98d8f48f5cc3568bae578b4a4c3e69a856bc29 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 19 Nov 2013 10:29:01 +0000 Subject: [PATCH] Introjucer: command line warning fix. --- .../Introjucer/Source/Project/jucer_Project.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/extras/Introjucer/Source/Project/jucer_Project.cpp b/extras/Introjucer/Source/Project/jucer_Project.cpp index 8740c75c5c..f61d764e26 100644 --- a/extras/Introjucer/Source/Project/jucer_Project.cpp +++ b/extras/Introjucer/Source/Project/jucer_Project.cpp @@ -226,12 +226,17 @@ void Project::warnAboutOldIntrojucerVersion() available.scanAllKnownFolders (*this); if (isAnyModuleNewerThanIntrojucer (available.modules)) - AlertWindow::showMessageBoxAsync (AlertWindow::WarningIcon, - "Introjucer", - "This version of the introjucer is out-of-date!" - "\n\n" - "Always make sure that you're running the very latest version, " - "preferably compiled directly from the JUCE repository that you're working with!"); + { + if (IntrojucerApp::getApp().isRunningCommandLine) + std::cout << "WARNING! This version of the introjucer is out-of-date!" << std::endl; + else + AlertWindow::showMessageBoxAsync (AlertWindow::WarningIcon, + "Introjucer", + "This version of the introjucer is out-of-date!" + "\n\n" + "Always make sure that you're running the very latest version, " + "preferably compiled directly from the JUCE repository that you're working with!"); + } } //==============================================================================