Commit fc7469db authored by Matt Edman's avatar Matt Edman
Browse files

And same for this dialog. No menubar, no problem!


svn:r446
parent 8d88ffcd
Loading
Loading
Loading
Loading
+0 −25
Changes for src/gui/log/messagelog.cpp: 0 added lines, 25 removed lines.
Original line number Diff line number Diff line
@@ -663,28 +663,3 @@ MessageLog::show()
  QMainWindow::show();
}
/** Overloads the default close() slot, so we can force the parent to become
 * visible. This only matters on Mac, so we can ensure the correct menubar is
 * displayed. */
void
MessageLog::close()
{
  MainWindow *p = (MainWindow *)parent();
  if (p) {
    p->show();
  }
  QMainWindow::close();
}

/** Serves the same purpose as MessageLog::close(), but this time responds to
 * when the user clicks on the X in the titlebar */
void
MessageLog::closeEvent(QCloseEvent *e)
{
  MainWindow *p = (MainWindow *)parent();
  if (p) {
    p->show();
  }
  e->accept();
}
+0 −4
Changes for src/gui/log/messagelog.h: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -56,16 +56,12 @@ public:
  

protected:
  /** Catches the close event when the user clicks on the X in the titlebar */
  void closeEvent(QCloseEvent *e);
  /** Called to deliver custom event types */
  void customEvent(QEvent *event);

public slots:
  /** Overloaded QWidget.show() **/
  void show();
  /** Called when the user selects File->Close or Alt-F4*/
  void close();
  
private slots:
  /** Called when the user triggers the save all action **/