Mercurial > hg > svgui
comparison view/View.cpp @ 1457:160e6d010141 single-point
Avoid showing progress bars for dormant layers. They'll typically be duplicates, e.g. in the vect app you can get many dormant layers all reporting the alignment completion at the same time. (Maybe it would be better just to reject progress bars for alignment in dormant layers? Hm)
author | Chris Cannam |
---|---|
date | Thu, 16 May 2019 15:50:02 +0100 |
parents | 4b7fc925a5ce |
children | 009f22e03bf6 |
comparison
equal
deleted
inserted
replaced
1456:98157ea8a3d2 | 1457:160e6d010141 |
---|---|
1755 QPushButton *cancel = i->second.cancel; | 1755 QPushButton *cancel = i->second.cancel; |
1756 | 1756 |
1757 if (i->first == object) { | 1757 if (i->first == object) { |
1758 | 1758 |
1759 found = true; | 1759 found = true; |
1760 | |
1761 if (i->first->isLayerDormant(this)) { | |
1762 // A dormant (invisible) layer can still be busy | |
1763 // generating, but we don't usually want to indicate | |
1764 // it because it probably means it's a duplicate of a | |
1765 // visible layer | |
1766 cancel->hide(); | |
1767 pb->hide(); | |
1768 continue; | |
1769 } | |
1760 | 1770 |
1761 // The timer is used to test for stalls. If the progress | 1771 // The timer is used to test for stalls. If the progress |
1762 // bar does not get updated for some length of time, the | 1772 // bar does not get updated for some length of time, the |
1763 // timer prompts it to go back into "indeterminate" mode | 1773 // timer prompts it to go back into "indeterminate" mode |
1764 QTimer *timer = i->second.checkTimer; | 1774 QTimer *timer = i->second.checkTimer; |