Diff of /kwave/TopWidget.cpp [48e4cf] .. [a21201] Maximize Restore

  Switch to side-by-side view

--- a/kwave/TopWidget.cpp
+++ b/kwave/TopWidget.cpp
@@ -113,7 +113,7 @@
     append("10 min", 10L*60L*1000L);
     append("30 min", 30L*60L*1000L);
     append("60 min", 60L*60L*1000L);
-};
+}
 
 //***************************************************************************
 void TopWidget::ZoomListPrivate::append(const char *text, unsigned int ms)
@@ -486,6 +486,7 @@
     updateMenu();
     updateRecentFiles();
 
+#ifdef HAVE_ARTS_SUPPORT
     // check if the aRts dispatcher is functional. if not, we better
     // should exit now, as most of the plugins would not work
     if (!m_plugin_manager->artsDispatcher()) {
@@ -502,6 +503,7 @@
 	qApp->exit();
 	return;
     }
+#endif /* HAVE_ARTS_SUPPORT */
 
     // now we are initialized, load all plugins now
     statusBar()->message(i18n("Loading plugins..."));
@@ -540,8 +542,11 @@
     Q_ASSERT(m_zoomselect);
 
     return ( m_menu_manager && m_main_widget &&
-	m_plugin_manager && m_toolbar && m_zoomselect &&
-        (m_plugin_manager->artsDispatcher()) );
+	m_plugin_manager && m_toolbar && m_zoomselect
+#ifdef HAVE_ARTS_SUPPORT
+	&& (m_plugin_manager->artsDispatcher())
+#endif /* HAVE_ARTS_SUPPORT */
+    );
 }
 
 //***************************************************************************