aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorFelix Queißner <git@mq32.de>2020-06-08 15:36:11 +0200
committerFelix Queißner <git@mq32.de>2020-06-08 15:36:11 +0200
commit0ad2367f1bcfb307810b256835d7d952930f5857 (patch)
treeb06f1bdabe29b11774a7bc95dd192c77db510d09 /src/mainwindow.cpp
parent25fcf4a129545cdcdceb87ca8deaeabaf2239e03 (diff)
downloadkristall-0ad2367f1bcfb307810b256835d7d952930f5857.tar.gz
Ubuntu20.04 patch commit. Happy hacking!
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index f2c4390..a2cb1ab 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -322,10 +322,15 @@ void MainWindow::on_actionSave_as_triggered()
{
BrowserTab * tab = qobject_cast<BrowserTab*>(this->ui->browser_tabs->currentWidget());
if(tab != nullptr) {
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
QFileDialog::saveFileContent(
tab->current_buffer,
tab->current_location.fileName()
);
+#else
+ // TODO: Implement without saveFileContent
+ QMessageBox::warning(this, "Kristall", "Not support in your Qt version.");
+#endif
}
}