mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Prevent crash with statistics while view is busy (#12935)
This commit is contained in:
parent
930ff2b95d
commit
7b5fe0321e
@ -1470,7 +1470,10 @@ void GuiView::showStats()
|
||||
d.already_in_selection_ = false;
|
||||
}
|
||||
|
||||
buf->updateStatistics(from, to);
|
||||
// Don't attempt to calculate stats if
|
||||
// the buffer is busy as this might crash (#12935)
|
||||
if (!busy() && !bv->busy())
|
||||
buf->updateStatistics(from, to);
|
||||
|
||||
QStringList stats;
|
||||
if (word_count_enabled_) {
|
||||
|
Loading…
Reference in New Issue
Block a user