diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-08 00:59:30 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-11-08 00:59:30 +0000 |
| commit | d042ff18f4b4f4123794f457856552c5ebf8cd2e (patch) | |
| tree | 98279eaaa9147e66494de99e06d0649da523c2de /src | |
| parent | Reducing the risk of ocureences of 100% CPU bug (diff) | |
| download | inkscape-d042ff18f4b4f4123794f457856552c5ebf8cd2e.tar.gz inkscape-d042ff18f4b4f4123794f457856552c5ebf8cd2e.zip | |
Fixes CPU problems
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/symbols.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/dialog/symbols.cpp b/src/ui/dialog/symbols.cpp index f018261c6..52f22103f 100644 --- a/src/ui/dialog/symbols.cpp +++ b/src/ui/dialog/symbols.cpp @@ -447,6 +447,9 @@ void SymbolsDialog::rebuild() { } if (symbol_document) { addSymbolsInDoc(symbol_document); + } else { + idleconn.disconnect(); + idleconn = Glib::signal_idle().connect( sigc::mem_fun(*this, &SymbolsDialog::callbackSymbols)); } } @@ -897,6 +900,8 @@ void SymbolsDialog::clearSearch() icons_found = false; addSymbolsInDoc(symbol_document); } else { + idleconn.disconnect(); + idleconn = Glib::signal_idle().connect( sigc::mem_fun(*this, &SymbolsDialog::callbackSymbols)); enableWidgets(true); } } |
