Revert "CShellWindow: fix "OK" button after shell window"

This reverts commit a306a747a1.

Thilo fixed / worked around this issue differently.


Origin commit data
------------------
Commit: f99c3ebc37
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-08 (Fri, 08 Jan 2016)
This commit is contained in:
Stefan Seyfried
2016-01-08 19:38:07 +01:00
parent a306a747a1
commit e54296ead6

View File

@@ -245,14 +245,13 @@ void CShellWindow::showResult()
}
if ((mode & VERBOSE)){
CComponentsButton *btn = NULL;
if (show_button){
int b_width = 150;
int b_height = 35;
int xpos = frameBuffer->getScreenWidth() - b_width;
int ypos = frameBuffer->getScreenHeight() - b_height;
btn = new CComponentsButton(xpos, ypos, b_width, b_height, LOCALE_MESSAGEBOX_BACK, NEUTRINO_ICON_BUTTON_OKAY, NULL, true, true);
btn->paint(false); /* saving background is not really needed */
CComponentsButton btn(xpos, ypos, b_width, b_height, LOCALE_MESSAGEBOX_BACK, NEUTRINO_ICON_BUTTON_OKAY, NULL, true, true);
btn.paint();
}
neutrino_msg_t msg;
@@ -265,8 +264,6 @@ void CShellWindow::showResult()
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
while (msg != CRCInput::RC_ok && msg != CRCInput::RC_home && msg != CRCInput::RC_timeout);
}
if (btn)
delete btn;
textBox->hide();
}
}