mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user