aboutsummaryrefslogtreecommitdiff
path: root/browsertab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'browsertab.cpp')
-rw-r--r--browsertab.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/browsertab.cpp b/browsertab.cpp
index e18350c..5c8c453 100644
--- a/browsertab.cpp
+++ b/browsertab.cpp
@@ -98,10 +98,10 @@ void BrowserTab::on_menu_button_clicked()
connect(menu.addAction("Settings..."), &QAction::triggered, [this]() {
SettingsDialog dialog;
- dialog.setGeminiStyle(current_style);
+ dialog.setGeminiStyle(mainWindow->current_style);
if(dialog.exec() == QDialog::Accepted) {
- this->current_style = dialog.geminiStyle();
+ mainWindow->current_style = dialog.geminiStyle();
}
});
@@ -140,7 +140,7 @@ void BrowserTab::on_gemini_complete(const QByteArray &data, const QString &mime)
if(mime.startsWith("text/gemini")) {
- auto doc= GeminiRenderer{ current_style }.render(data, this->current_location, this->outline);
+ auto doc= GeminiRenderer{ mainWindow->current_style }.render(data, this->current_location, this->outline);
this->ui->text_browser->setStyleSheet(QString("QTextBrowser { background-color: %1; }").arg(doc->background_color.name()));
document = std::move(doc);