From: Michal MalĂ˝ Date: Sun, 17 Nov 2013 02:09:52 +0000 (+0100) Subject: Fix message boxes with data loading errors information. X-Git-Tag: 0.1b~8 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=58dc8db5393efab2345e9677069af2a02032ddc0;p=anyanka.git Fix message boxes with data loading errors information. --- diff --git a/datamanager.cpp b/datamanager.cpp index 58d7201..f38ed9f 100644 --- a/datamanager.cpp +++ b/datamanager.cpp @@ -135,7 +135,7 @@ std::shared_ptr DataManager::loadSingleRun(QDir& dir) ret = m_dfl.loadSingleRun(dir, dataFiles); if (ret == DataFilesLoader::ReturnCode::E_NO_FILES) { - QMessageBox::warning(nullptr, ME_SENDER_STR, "Directory " + dir.path() + " does not contain any ChemStation data files."); + QMessageBox::warning(nullptr, "Data loading", "Directory '" + dir.path() + "'' does not seem to contain ChemStation run data."); return nullptr; } if (ret != DataFilesLoader::ReturnCode::SUCCESS) { @@ -297,7 +297,7 @@ void DataManager::onLoadSequence(const QString& dir) } Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, "Single runs loaded, count: " + QString::number(nSeq->count())); if (nSeq->count() < 1) { - QMessageBox::warning(nullptr, "Data loading", "This directory does not appear to contain ChemStation sequence."); + QMessageBox::warning(nullptr, "Data loading", "Directory '" + rootDir.path() + "' does not seem to contain ChemStation sequence."); return; }