diff --git a/src/include/progind.cpp b/src/include/progind.cpp index 494727896..1bb787596 100755 --- a/src/include/progind.cpp +++ b/src/include/progind.cpp @@ -370,8 +370,6 @@ void TProgress_monitor::set_max(long tot) bool TProgress_monitor::is_cancelled() const { return _cancelled; } -static WINDOW topwin = NULL; - TProgress_monitor::TProgress_monitor(long items, const char* txt, bool cancancel) : _total(items), _txt(txt), _status(0), _cancellable(cancancel), _pd(NULL_WIN), _start(clock()), _cancelled(false) @@ -379,7 +377,6 @@ TProgress_monitor::TProgress_monitor(long items, const char* txt, bool cancancel xvt_scr_set_busy_cursor(); if (_pm_parent == NULL_WIN) { - topwin = xvt_scr_get_focus_topwin(); _pm_parent = cur_win(); if (_pm_parent == NULL_WIN) _pm_parent = TASK_WIN; @@ -402,11 +399,4 @@ TProgress_monitor::~TProgress_monitor() xvt_dm_progress_destroy(_pd); else xvt_scr_reset_busy_cursor(); - CHECK("top_win NULL", topwin != NULL_WIN); - if (_pm_inst <= 0 && topwin != NULL_WIN) - { - xvt_scr_set_focus_vobj(topwin); - xvt_vobj_raise(topwin); - topwin = NULL_WIN; - } }