Prevent crash when menu item is selected to early.
This commit is contained in:
parent
144321a5d3
commit
482be432d3
1 changed files with 3 additions and 0 deletions
|
|
@ -261,6 +261,9 @@ void DatabaseWindow::newCrudPage(Oid tableoid)
|
||||||
|
|
||||||
void DatabaseWindow::newCatalogInspectorPage(QString caption, NamespaceFilter filter)
|
void DatabaseWindow::newCatalogInspectorPage(QString caption, NamespaceFilter filter)
|
||||||
{
|
{
|
||||||
|
if (!m_database)
|
||||||
|
return; // would be better if we queued the operation for later
|
||||||
|
|
||||||
auto ct = new CatalogInspector(m_database, this);
|
auto ct = new CatalogInspector(m_database, this);
|
||||||
ct->addAction(actionRefreshCatalog);
|
ct->addAction(actionRefreshCatalog);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue