Fixed a crash when closing the DatabaseViewer dialog on Mac OS X. Added "Close" button when it is in modal window mode for Mac OS X too

This commit is contained in:
matlabbe
2015-04-28 13:04:35 -04:00
parent f7328c0362
commit 08a3a001f5
6 changed files with 33 additions and 4 deletions
+7
View File
@@ -79,6 +79,8 @@ DatabaseViewer::DatabaseViewer(QWidget * parent) :
ui_ = new Ui_DatabaseViewer();
ui_->setupUi(this);
ui_->buttonBox->setVisible(false);
connect(ui_->buttonBox->button(QDialogButtonBox::Close), SIGNAL(clicked()), this, SLOT(close()));
QString title("RTAB-Map Database Viewer[*]");
this->setWindowTitle(title);
@@ -275,6 +277,11 @@ DatabaseViewer::~DatabaseViewer()
}
}
void DatabaseViewer::showCloseButton(bool visible)
{
ui_->buttonBox->setVisible(visible);
}
void DatabaseViewer::configModified()
{
this->setWindowModified(true);