Skip to content

Commit

Permalink
rename function in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Oct 16, 2020
1 parent 10becfd commit bb95d4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Host.cpp
Expand Up @@ -2713,7 +2713,7 @@ std::pair<bool, QString> Host::openWindow(const QString& name, bool loadLayout,
// The name is used in BOTH the QMaps of all user created TConsole
// and TDockWidget instances - so we HAVE an existing user window,
// Lets confirm this:
Q_ASSERT_X(console->getType() == TConsole::UserWindow, "mudlet::openWindow(...)", "An existing TConsole was expected to be marked as a User Window type but it isn't");
Q_ASSERT_X(console->getType() == TConsole::UserWindow, "host::openWindow(...)", "An existing TConsole was expected to be marked as a User Window type but it isn't");
dockwidget->update();

if (loadLayout && !dockwidget->hasLayoutAlready) {
Expand Down Expand Up @@ -3491,7 +3491,7 @@ void Host::createMapper(bool loadDefaultMap)
mpDockableMapWidget->setWidget(pMap->mpMapper);

if (loadDefaultMap && pMap->mpRoomDB->getRoomIDList().isEmpty()) {
qDebug() << "mudlet::slot_mapper() - restore map case 3.";
qDebug() << "Host::create_mapper() - restore map case 3.";
pMap->pushErrorMessagesToFile(tr("Pre-Map loading(3) report"), true);
QDateTime now(QDateTime::currentDateTime());
if (pMap->restore(QString())) {
Expand Down Expand Up @@ -3566,7 +3566,7 @@ bool Host::commitLayoutUpdates(bool flush)
// pToolBar->property("layoutChanged") and examining that
// non-existant variant to see if it was true or false causes seg. faults!
if (Q_UNLIKELY(!pToolBar->property("layoutChanged").isValid())) {
qWarning().nospace().noquote() << "mudlet::commitLayoutUpdates() WARNING - was about to check for \"layoutChanged\" meta-property on a toolbar without that property!";
qWarning().nospace().noquote() << "host::commitLayoutUpdates() WARNING - was about to check for \"layoutChanged\" meta-property on a toolbar without that property!";
} else if (pToolBar->property("layoutChanged").toBool()) {
pToolBar->setProperty("layoutChanged", QVariant(false));
updated = true;
Expand Down

0 comments on commit bb95d4b

Please sign in to comment.