Skip to content

Commit

Permalink
GUI: Fix regression in multicolumn PopUp widget
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jul 22, 2016
1 parent df009e9 commit 499e5ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui/widgets/popup.cpp
Expand Up @@ -71,6 +71,10 @@ PopUpDialog::PopUpDialog(PopUpWidget *boss, int clickX, int clickY)
: Dialog(0, 0, 16, 16),
_popUpBoss(boss) {

_openTime = 0;
_buffer = nullptr;
_entriesPerColumn = 1;

// Copy the selection index
_selection = _popUpBoss->_selectedItem;

Expand Down Expand Up @@ -142,10 +146,6 @@ PopUpDialog::PopUpDialog(PopUpWidget *boss, int clickX, int clickY)
// Remember original mouse position
_clickX = clickX - _x;
_clickY = clickY - _y;

_openTime = 0;
_buffer = nullptr;
_entriesPerColumn = 1;
}

void PopUpDialog::drawDialog() {
Expand Down

0 comments on commit 499e5ab

Please sign in to comment.