From 181ecd0c3bf27b47487f973fb83b988fd6ceaecf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Mar 2013 21:17:13 +0300 Subject: Another fixes after Coverity checks. --- src/gui/widgets/dropdown.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui/widgets/dropdown.cpp') diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp index d4fde01dc..5cffb8d72 100644 --- a/src/gui/widgets/dropdown.cpp +++ b/src/gui/widgets/dropdown.cpp @@ -152,8 +152,7 @@ DropDown::DropDown(const Widget2 *const widget, if (listener) addActionListener(listener); - if (mPopup) - mPopup->adjustSize(); + mPopup->adjustSize(); if (mSkin) { @@ -446,9 +445,6 @@ void DropDown::adjustHeight() void DropDown::dropDown() { - if (!mPopup) - return; - if (!mDroppedDown) { mDroppedDown = true; -- cgit v1.2.3-60-g2f50