+2005-09-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * QtView.C (QtView): do not try to se the icon under Qt/Mac.
+
2005-09-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* QGraphics.C (update_contents): fix compiler warning.
view_state_changed.connect(boost::bind(&QtView::update_view_state, this));
connect(&statusbar_timer_, SIGNAL(timeout()), this, SLOT(update_view_state_qt()));
- // assign an icon to main form
+#ifndef Q_WS_MACX
+ // assign an icon to main form. We do not do it under Qt/Mac,
+ // since the icon is provided in the application bundle.
string const iconname = LibFileSearch("images", "lyx", "xpm");
if (!iconname.empty())
setIcon(QPixmap(toqstr(iconname)));
+#endif
// make sure the buttons are disabled if needed
updateToolbars();