Skip to content
Permalink
Browse files

Tabify attribute tables that are dock widgets (fix #11953)

  • Loading branch information
gacarrillor authored and nyalldawson committed May 2, 2020
1 parent 76a8f82 commit 41a58df395771644d4d60793f2dc04de146a34f9
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsattributetabledialog.cpp
@@ -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 );
@@ -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"

0 comments on commit 41a58df

Please sign in to comment.
You can’t perform that action at this time.