From 9134bd06b23625038a99e345429c5ad6aff6159f Mon Sep 17 00:00:00 2001 From: Basil Huber Date: Thu, 19 Feb 2015 08:27:41 +0100 Subject: [PATCH] changed criticalMessageBoxOnMainThread(const QString& title, const QString& msg) to QGCMessageBox::warning --- src/QGCApplication.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QGCApplication.cc b/src/QGCApplication.cc index b923c1d..29a61f4 100644 --- a/src/QGCApplication.cc +++ b/src/QGCApplication.cc @@ -498,11 +498,11 @@ void QGCApplication::saveTempFlightDataLogOnMainThread(QString tempLogfile) if(QFile::exists(saveFilename) && !QFile::remove(saveFilename)){ // if the file cannot be removed, prompt user and ask new path saveError = true; - QGCApplication::criticalMessageBoxOnMainThread("File Error","Could not overwrite existing file.\nPlease provide a different file name to save to."); + QGCMessageBox::warning("File Error","Could not overwrite existing file.\nPlease provide a different file name to save to."); } else if(!QFile::copy(tempLogfile, saveFilename)) { // if file could not be copied, prompt user and ask new path saveError = true; - QGCApplication::criticalMessageBoxOnMainThread("File Error","Could not create file.\nPlease provide a different file name to save to."); + QGCMessageBox::warning("File Error","Could not create file.\nPlease provide a different file name to save to."); } } } while(saveError); // if the file could not be overwritten, ask for new file