mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
MainWindow: Further simplification
Looking at this now this can be simplified even further.
This commit is contained in:
@@ -366,17 +366,12 @@ void MainWindow::fileClose()
|
||||
closeSqlTab(i, true);
|
||||
}
|
||||
|
||||
void MainWindow::fileExit()
|
||||
{
|
||||
db.close();
|
||||
}
|
||||
|
||||
void MainWindow::closeEvent( QCloseEvent* event )
|
||||
{
|
||||
db.close();
|
||||
PreferencesDialog::setSettingsValue("MainWindow", "geometry", saveGeometry());
|
||||
PreferencesDialog::setSettingsValue("MainWindow", "windowState", saveState());
|
||||
PreferencesDialog::setSettingsValue("SQLLogDock", "Log", ui->comboLogSubmittedBy->currentText());
|
||||
fileExit();
|
||||
QMainWindow::closeEvent(event);
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,6 @@ private slots:
|
||||
virtual void populateTable(const QString& tablename);
|
||||
virtual void resetBrowser();
|
||||
virtual void fileClose();
|
||||
virtual void fileExit();
|
||||
virtual void addRecord();
|
||||
virtual void deleteRecord();
|
||||
virtual void selectTableLine( int lineToSelect );
|
||||
|
||||
Reference in New Issue
Block a user