summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 09af6414f..84c4c867a 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -528,11 +528,13 @@ void MainWindow::on_actionOpen_triggered()
void MainWindow::on_actionSave_triggered()
{
+ mainTab->stealFocus(); // Make sure that any currently edited field is updated before saving.
file_save();
}
void MainWindow::on_actionSaveAs_triggered()
{
+ mainTab->stealFocus(); // Make sure that any currently edited field is updated before saving.
file_save_as();
}
@@ -582,6 +584,7 @@ void MainWindow::on_actionCloudstoragesave_triggered()
qDebug() << "Saving cloud storage to:" << filename;
if (mainTab->isEditing())
mainTab->acceptChanges();
+ mainTab->stealFocus(); // Make sure that any currently edited field is updated before saving.
showProgressBar();
int error = save_dives(qPrintable(filename));