mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-29 00:47:32 -04:00
Fix coding style.
This commit is contained in:
parent
94ac9c9ea1
commit
94e6d3f89b
2 changed files with 6 additions and 6 deletions
|
@ -397,7 +397,7 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||||
|
|
||||||
void MainWindow::closeEvent(QCloseEvent* event)
|
void MainWindow::closeEvent(QCloseEvent* event)
|
||||||
{
|
{
|
||||||
openDatabases.clear();
|
m_openDatabases.clear();
|
||||||
bool openPreviousDatabasesOnStartup = config()->get("OpenPreviousDatabasesOnStartup").toBool();
|
bool openPreviousDatabasesOnStartup = config()->get("OpenPreviousDatabasesOnStartup").toBool();
|
||||||
|
|
||||||
if (openPreviousDatabasesOnStartup) {
|
if (openPreviousDatabasesOnStartup) {
|
||||||
|
@ -413,7 +413,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
||||||
|
|
||||||
if (openPreviousDatabasesOnStartup) {
|
if (openPreviousDatabasesOnStartup) {
|
||||||
disconnect(m_ui->tabWidget, SIGNAL(databaseWithFileClosed(QString)), this, SLOT(rememberOpenDatabases(QString)));
|
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 showEntryContextMenu(const QPoint& globalPos);
|
||||||
void showGroupContextMenu(const QPoint& globalPos);
|
void showGroupContextMenu(const QPoint& globalPos);
|
||||||
void saveToolbarState(bool value);
|
void saveToolbarState(bool value);
|
||||||
void rememberOpenDatabases(QString filePath);
|
void rememberOpenDatabases(const QString& filePath);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);
|
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);
|
||||||
|
@ -69,7 +69,7 @@ private:
|
||||||
QAction* m_clearHistoryAction;
|
QAction* m_clearHistoryAction;
|
||||||
QActionGroup* m_lastDatabasesActions;
|
QActionGroup* m_lastDatabasesActions;
|
||||||
QActionGroup* m_copyAdditionalAttributeActions;
|
QActionGroup* m_copyAdditionalAttributeActions;
|
||||||
QStringList openDatabases;
|
QStringList m_openDatabases;
|
||||||
|
|
||||||
Q_DISABLE_COPY(MainWindow)
|
Q_DISABLE_COPY(MainWindow)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue