mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +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:
@@ -2114,6 +2114,7 @@ void PreferencesDialog::openDatabaseViewer()
|
||||
DatabaseViewer * viewer = new DatabaseViewer(this);
|
||||
viewer->setWindowModality(Qt::WindowModal);
|
||||
viewer->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
viewer->showCloseButton();
|
||||
if(viewer->openDatabase(_ui->source_database_lineEdit_path->text()))
|
||||
{
|
||||
viewer->show();
|
||||
|
||||
Reference in New Issue
Block a user