GUI: Fix regression in multicolumn PopUp widget

This commit is contained in:
Eugene Sandulenko 2016-07-22 14:35:31 +03:00
parent df009e9e59
commit 499e5ab3ea

View File

@ -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;
@ -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() {