Permessa l'uscita con Alt-F4
git-svn-id: svn://10.65.10.50/trunk@6531 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6ddf9631ed
commit
53bbac4dcf
@ -1167,6 +1167,12 @@ void TViswin::txt_clear(COLOR color)
|
||||
set_mode(M_COPY);
|
||||
bar ((X_OFFSET-1), Y_OFFSET -1, columns()+1, rows()-BUTTONROW_SIZE);
|
||||
}
|
||||
|
||||
bool TViswin::can_be_closed() const
|
||||
{
|
||||
((TViswin*)this)->on_button(DLG_QUIT);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void TViswin::update ()
|
||||
{
|
||||
@ -1243,7 +1249,8 @@ void TViswin::on_button(short dlg)
|
||||
switch (dlg)
|
||||
{
|
||||
case DLG_QUIT:
|
||||
if (_isopen) abort_print();
|
||||
if (_isopen)
|
||||
abort_print();
|
||||
else
|
||||
{
|
||||
xvt_statbar_set("");
|
||||
|
Loading…
x
Reference in New Issue
Block a user