Diff of /tags/qtractor_0_5_6/src/qtractorLv2Plugin.cpp [r3020] .. [r3021] Maximize Restore

  Switch to side-by-side view

--- a/tags/qtractor_0_5_6/src/qtractorLv2Plugin.cpp
+++ b/tags/qtractor_0_5_6/src/qtractorLv2Plugin.cpp
@@ -2646,9 +2646,11 @@
 		if (m_pQt4Widget) {
 			// guaranteeing a reasonable window type:
 			// ie. not Qt::Dialog or Qt::Popup from the seemingly good choices.
-			const Qt::WindowFlags wflags
-				= m_pQt4Widget->windowFlags() & ~Qt::WindowType_Mask;
-			m_pQt4Widget->setWindowFlags(wflags | Qt::Widget);
+			if (m_lv2_ui_type == LV2_UI_TYPE_QT4) {
+				const Qt::WindowFlags wflags
+					= m_pQt4Widget->windowFlags() & ~Qt::WindowType_Mask;
+				m_pQt4Widget->setWindowFlags(wflags | Qt::Widget);
+			}
 			m_pQt4Widget->show();
 			m_pQt4Widget->raise();
 			m_pQt4Widget->activateWindow();