summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 1678cd6d4..9feb8f684 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -648,15 +648,19 @@ bool MainWindow::plannerStateClean()
return true;
}
+void MainWindow::refreshProfile()
+{
+ showProfile();
+ graphics()->replot(get_dive(selected_dive));
+ DivePictureModel::instance()->updateDivePictures();
+}
+
void MainWindow::planCanceled()
{
// while planning we might have modified the displayed_dive
// let's refresh what's shown on the profile
- showProfile();
- graphics()->replot();
+ refreshProfile();
refreshDisplay(false);
- graphics()->plotDive(get_dive(selected_dive));
- DivePictureModel::instance()->updateDivePictures();
}
void MainWindow::planCreated()
@@ -1570,6 +1574,7 @@ void MainWindow::loadFiles(const QStringList fileNames)
QByteArray fileNamePtr;
QStringList failedParses;
+ showProgressBar();
for (int i = 0; i < fileNames.size(); ++i) {
int error;
@@ -1588,6 +1593,7 @@ void MainWindow::loadFiles(const QStringList fileNames)
failedParses.append(fileNames.at(i));
}
}
+ hideProgressBar();
if (!showWarning)
getNotificationWidget()->hideNotification();
process_dives(false, false);