From f23591abc0801f05dab6d287ca31962d76f518a0 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Tue, 12 Mar 2019 10:32:10 -0400 Subject: [PATCH] Added file name and path to migration messgae --- oscar/SleepLib/preferences.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/preferences.cpp b/oscar/SleepLib/preferences.cpp index 215f0d59..9fc15648 100644 --- a/oscar/SleepLib/preferences.cpp +++ b/oscar/SleepLib/preferences.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #ifdef Q_OS_WIN #include "windows.h" @@ -196,7 +197,9 @@ bool Preferences::Open(QString filename) if (root.tagName() != STR_AppName) { if (root.tagName() == "SleepyHead" ) { - QMessageBox::warning(nullptr, STR_MessageBox_Error, QObject::tr( "You must run the OSCAR Migration Tool"), QMessageBox::Ok); + QString msg = QObject::tr("Using ") + p_filename + QObject::tr(", found SleepyHead -\n") + + QObject::tr( "You must run the OSCAR Migration Tool"); + QMessageBox::warning(nullptr, STR_MessageBox_Error, msg, QMessageBox::Ok); exit(1); } return false;