summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-02 03:15:18 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-02 03:15:18 +0300
commitd0d872ffeff89facdd35ce358bd4d9b73cf8332c (patch)
tree806e6d7b2c70a05de9b473505d0269945843e574 /src/gui/windows
parent950c3109bcd8a69d77d22c316cfc6ab34abf5f22 (diff)
downloadplus-d0d872ffeff89facdd35ce358bd4d9b73cf8332c.tar.gz
plus-d0d872ffeff89facdd35ce358bd4d9b73cf8332c.tar.bz2
plus-d0d872ffeff89facdd35ce358bd4d9b73cf8332c.tar.xz
plus-d0d872ffeff89facdd35ce358bd4d9b73cf8332c.zip
Add all known windows into windows unit tests.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/itemamountwindow.h2
-rw-r--r--src/gui/windows/ministatuswindow.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/itemamountwindow.h b/src/gui/windows/itemamountwindow.h
index c9cbd4227..a89bb83f5 100644
--- a/src/gui/windows/itemamountwindow.h
+++ b/src/gui/windows/itemamountwindow.h
@@ -85,7 +85,9 @@ class ItemAmountWindow final : public Window,
~ItemAmountWindow();
+#ifndef UNITTESTS
private:
+#endif
static void finish(Item *const item,
const int amount,
const int price,
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index c9c6248e6..0f3ea0a4d 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -301,7 +301,8 @@ void MiniStatusWindow::attributeChanged(const AttributesT id,
void MiniStatusWindow::updateStatus()
{
- statusWindow->updateStatusBar(mStatusBar);
+ if (statusWindow)
+ statusWindow->updateStatusBar(mStatusBar);
if (mStatusPopup && mStatusPopup->isPopupVisible())
mStatusPopup->update();
}