Skip to content

Commit

Permalink
added fix for menubar issue on mac when loading from non cocoa qt app…
Browse files Browse the repository at this point in the history
…lication (Sketchup)
  • Loading branch information
martijnberger committed Apr 14, 2012
1 parent bb26c4e commit 9f4a383
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/mywindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9f4a383

Please sign in to comment.