mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 16:59:44 -05:00
Fix coding style.
This commit is contained in:
parent
94ac9c9ea1
commit
94e6d3f89b
@ -397,7 +397,7 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
openDatabases.clear();
|
||||
m_openDatabases.clear();
|
||||
bool openPreviousDatabasesOnStartup = config()->get("OpenPreviousDatabasesOnStartup").toBool();
|
||||
|
||||
if (openPreviousDatabasesOnStartup) {
|
||||
@ -413,7 +413,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
||||
|
||||
if (openPreviousDatabasesOnStartup) {
|
||||
disconnect(m_ui->tabWidget, SIGNAL(databaseWithFileClosed(QString)), this, SLOT(rememberOpenDatabases(QString)));
|
||||
config()->set("LastOpenedDatabases", openDatabases);
|
||||
config()->set("LastOpenedDatabases", m_openDatabases);
|
||||
}
|
||||
}
|
||||
|
||||
@ -442,7 +442,7 @@ void MainWindow::setShortcut(QAction* action, QKeySequence::StandardKey standard
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::rememberOpenDatabases(QString filePath)
|
||||
void MainWindow::rememberOpenDatabases(const QString& filePath)
|
||||
{
|
||||
openDatabases.append(filePath);
|
||||
m_openDatabases.append(filePath);
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ private Q_SLOTS:
|
||||
void showEntryContextMenu(const QPoint& globalPos);
|
||||
void showGroupContextMenu(const QPoint& globalPos);
|
||||
void saveToolbarState(bool value);
|
||||
void rememberOpenDatabases(QString filePath);
|
||||
void rememberOpenDatabases(const QString& filePath);
|
||||
|
||||
private:
|
||||
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);
|
||||
@ -69,7 +69,7 @@ private:
|
||||
QAction* m_clearHistoryAction;
|
||||
QActionGroup* m_lastDatabasesActions;
|
||||
QActionGroup* m_copyAdditionalAttributeActions;
|
||||
QStringList openDatabases;
|
||||
QStringList m_openDatabases;
|
||||
|
||||
Q_DISABLE_COPY(MainWindow)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user