Skip to content

Commit

Permalink
EditDialog: Clear after closing database
Browse files Browse the repository at this point in the history
When closing the current database file clear the contents of the edit
window or the edit dock (whichever is used at the moment).

See issue sqlitebrowser#469.
  • Loading branch information
MKleusberg committed Jan 2, 2016
1 parent 73536df commit f6b9cd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ bool MainWindow::fileClose()
connect(ui->dataTable->filterHeader(), SIGNAL(filterChanged(int,QString)), this, SLOT(updateFilter(int,QString)));
connect(m_browseTableModel, SIGNAL(dataChanged(QModelIndex,QModelIndex,QVector<int>)), this, SLOT(dataTableSelectionChanged(QModelIndex)));

// Reset the edit dialog/dock
editDock->reset();
editWin->reset();

// Remove all stored table information browse data tab
browseTableSettings.clear();
defaultBrowseTableEncoding = QString();
Expand Down

0 comments on commit f6b9cd1

Please sign in to comment.