From c843d47fe4487ba672254ab80415d0b39228dc84 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Mon, 8 Jan 2024 13:34:27 +0100 Subject: [PATCH] Bad workaround for #659 --- src/openstudio_lib/OSDocument.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openstudio_lib/OSDocument.cpp b/src/openstudio_lib/OSDocument.cpp index 202c7661e..5d223c757 100644 --- a/src/openstudio_lib/OSDocument.cpp +++ b/src/openstudio_lib/OSDocument.cpp @@ -126,6 +126,7 @@ #include #include #include +#include // Workaround for #659 #include @@ -353,8 +354,11 @@ void OSDocument::setModel(const model::Model& model, bool modified, bool /*saveC } void OSDocument::weatherFileReset() { + // TODO: temporary workaround for #659 +#ifndef Q_OS_DARWIN QMessageBox::warning(mainWindow(), "Missing Weather File", "Invalid weather file object, weather file object has been reset. Please choose another weather file."); +#endif } void OSDocument::createTabButtons() {