aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ba80651..ee79efa 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -62,7 +62,9 @@ MainWindow::MainWindow(QApplication * app, QWidget *parent) :
for(QAction * act : this->ui->menuView->actions())
{
auto * dock = qvariant_cast<QDockWidget*>(act->data());
- act->setChecked(dock->isVisible());
+ if(dock != nullptr) {
+ act->setChecked(dock->isVisible());
+ }
}
});
@@ -456,3 +458,11 @@ void MainWindow::on_actionManage_Certificates_triggered()
kristall::saveSettings();
}
+
+void MainWindow::on_actionShow_document_source_triggered()
+{
+ BrowserTab * tab = qobject_cast<BrowserTab*>(this->ui->browser_tabs->currentWidget());
+ if(tab != nullptr) {
+ tab->openSourceView();
+ }
+}