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
@ -1168,6 +1168,12 @@ void TViswin::txt_clear(COLOR color)
|
|||||||
bar ((X_OFFSET-1), Y_OFFSET -1, columns()+1, rows()-BUTTONROW_SIZE);
|
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 ()
|
void TViswin::update ()
|
||||||
{
|
{
|
||||||
if (_scrolling)
|
if (_scrolling)
|
||||||
@ -1243,7 +1249,8 @@ void TViswin::on_button(short dlg)
|
|||||||
switch (dlg)
|
switch (dlg)
|
||||||
{
|
{
|
||||||
case DLG_QUIT:
|
case DLG_QUIT:
|
||||||
if (_isopen) abort_print();
|
if (_isopen)
|
||||||
|
abort_print();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
xvt_statbar_set("");
|
xvt_statbar_set("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user