mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 20:29:57 +00:00
Log loading errors
This commit is contained in:
parent
9598b26462
commit
0d523c3793
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,8 @@
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
#include <apps/opencs/model/world/data.hpp>
|
#include <apps/opencs/model/world/data.hpp>
|
||||||
|
|
||||||
|
#include <components/debug/debuglog.hpp>
|
||||||
#include <components/files/qtconversion.hpp>
|
#include <components/files/qtconversion.hpp>
|
||||||
|
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
@ -121,6 +123,7 @@ void CSVDoc::LoadingDocument::abort(const std::string& error)
|
||||||
{
|
{
|
||||||
mAborted = true;
|
mAborted = true;
|
||||||
mError->setText(QString::fromUtf8(("<font color=red>Loading failed: " + error + "</font>").c_str()));
|
mError->setText(QString::fromUtf8(("<font color=red>Loading failed: " + error + "</font>").c_str()));
|
||||||
|
Log(Debug::Error) << "Loading failed: " << error;
|
||||||
mButtons->setStandardButtons(QDialogButtonBox::Close);
|
mButtons->setStandardButtons(QDialogButtonBox::Close);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue