(svn r26629) -Fix [FS#6012]: If the video driver fails to supply a list of resolutions, display an error message.

This commit is contained in:
frosch
2014-06-05 17:14:16 +00:00
parent f0dcaaf194
commit 06b210ff42
3 changed files with 7 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ struct DropdownWindow : Window {
DropdownWindow(Window *parent, const DropDownList *list, int selected, int button, bool instant_close, const Point &position, const Dimension &size, Colours wi_colour, bool scroll)
: Window(&_dropdown_desc)
{
assert(list->Length() > 0);
this->position = position;
this->CreateNestedTree();