mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
Add SQLCipher FAQ option in the Help menu
This new Help menu option only displays for SQLCipher enabled builds. For non-SQLCipher ones, it's not shown. Closes #734.
This commit is contained in:
@@ -182,6 +182,11 @@ void MainWindow::init()
|
||||
// Add keyboard shortcut for "Edit Cell" dock
|
||||
ui->viewMenu->actions().at(3)->setShortcut(QKeySequence(tr("Ctrl+E")));
|
||||
|
||||
// If we're not compiling in SQLCipher, hide it's FAQ link in the help menu
|
||||
#ifndef ENABLE_SQLCIPHER
|
||||
ui->actionSqlCipherFaq->setVisible(false);
|
||||
#endif
|
||||
|
||||
// Set statusbar fields
|
||||
statusEncryptionLabel = new QLabel(ui->statusbar);
|
||||
statusEncryptionLabel->setEnabled(false);
|
||||
@@ -1985,6 +1990,11 @@ void MainWindow::on_actionBug_report_triggered()
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/sqlitebrowser/sqlitebrowser/issues/new"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionSqlCipherFaq_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://discuss.zetetic.net/c/sqlcipher/sqlcipher-faq"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionWebsite_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("http://sqlitebrowser.org"));
|
||||
|
||||
Reference in New Issue
Block a user