Skip to content

Commit

Permalink
Re #5824. Add the Mantid icon to floating windows.
Browse files Browse the repository at this point in the history
It was missing on linux (and possibly mac)....
  • Loading branch information
RussellTaylor committed Aug 31, 2012
1 parent 63553b4 commit 53aadc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Code/Mantid/MantidPlot/src/FloatingWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ QMainWindow(NULL,f),
d_app(appWindow)
{
setFocusPolicy(Qt::StrongFocus);
setWindowIcon(QIcon(":/MantidPlot_Icon_32offset.png"));
connect(appWindow,SIGNAL(shutting_down()),this,SLOT(close()));
#ifdef Q_OS_WIN
// remember the flags
m_flags = windowFlags();
#endif

// Window must NOT get deleted automatically when closed.
// Instead, the ApplicationWindow->removeFloatingWindow() call takes care of
// calling deleteLater().
Expand Down

0 comments on commit 53aadc7

Please sign in to comment.