Skip to content

Commit

Permalink
Tabify attribute tables that are dock widgets (fix #11953)
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor authored and nyalldawson committed May 3, 2020
1 parent 76a8f82 commit 41a58df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsattributetabledialog.cpp
Expand Up @@ -217,7 +217,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *layer, QgsAttr
mDock = new QgsAttributeTableDock( QString(), QgisApp::instance() );
mDock->setWidget( this );
connect( this, &QObject::destroyed, mDock, &QWidget::close );
QgisApp::instance()->addDockWidget( Qt::BottomDockWidgetArea, mDock );
QgisApp::instance()->addTabifiedDockWidget( Qt::BottomDockWidgetArea, mDock, QStringList(), true );
}
mActionDockUndock->setChecked( dockTable );
connect( mActionDockUndock, &QAction::toggled, this, &QgsAttributeTableDialog::toggleDockMode );
Expand Down Expand Up @@ -893,7 +893,7 @@ void QgsAttributeTableDialog::toggleDockMode( bool docked )
mDock = new QgsAttributeTableDock( QString(), QgisApp::instance() );
mDock->setWidget( this );
connect( this, &QObject::destroyed, mDock, &QWidget::close );
QgisApp::instance()->addDockWidget( Qt::BottomDockWidgetArea, mDock );
QgisApp::instance()->addTabifiedDockWidget( Qt::BottomDockWidgetArea, mDock, QStringList(), true );
updateTitle();

// To prevent "QAction::event: Ambiguous shortcut overload"
Expand Down

0 comments on commit 41a58df

Please sign in to comment.