Skip to content
Browse files

added fix for menubar issue on mac when loading from non cocoa qt app…

…lication (Sketchup)
  • Loading branch information...
1 parent bb26c4e commit 9f4a383158bc02eea5ff9bab71e81cb9541196e7 @martijnberger martijnberger committed Apr 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/mywindow.cc
View
4 src/gui/mywindow.cc
@@ -88,6 +88,10 @@ void initGui()
if(!QApplication::instance())
{
+#if defined(__APPLE__)
+ QApplication::instance()->setAttribute(Qt::AA_MacPluginApplication);
+ QApplication::instance()->setAttribute(Qt::AA_DontUseNativeMenuBar);
+#endif
using namespace yafaray;
Y_INFO << "Starting Qt graphical interface..." << yendl;
app = new QApplication(argc, 0);

0 comments on commit 9f4a383

Please sign in to comment.
Something went wrong with that request. Please try again.