Skip to content

Commit

Permalink
Remove unnecessary overloaded function
Browse files Browse the repository at this point in the history
  • Loading branch information
MKleusberg committed Jun 8, 2014
1 parent a9310b4 commit daf12d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,6 @@ bool MainWindow::fileOpen(const QString& fileName)
return retval;
}

void MainWindow::fileOpen()
{
fileOpen(QString());
}

void MainWindow::fileNew()
{
QString fileName = QFileDialog::getSaveFileName(this, tr("Choose a filename to save under"), PreferencesDialog::getSettingsValue("db", "defaultlocation").toString());
Expand Down
3 changes: 1 addition & 2 deletions src/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,14 @@ class MainWindow : public QMainWindow
void resizeEvent(QResizeEvent *event);

public slots:
bool fileOpen(const QString& fileName);
bool fileOpen(const QString& fileName = QString());
void logSql(const QString &sql, int msgtype);
void dbState(bool dirty);
void browseRefresh();

private slots:
void createTreeContextMenu(const QPoint & qPoint);
void changeTreeSelection();
void fileOpen();
void fileNew();
void populateStructure();
void populateTable(const QString& tablename);
Expand Down

0 comments on commit daf12d4

Please sign in to comment.