]> git.tdb.fi Git - libs/gltk.git/commitdiff
Emit signal_text_changed from Entry::set_text
authorMikko Rasa <tdb@tdb.fi>
Tue, 17 Sep 2019 15:49:04 +0000 (18:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 17 Sep 2019 16:01:45 +0000 (19:01 +0300)
source/entry.cpp

index 36658dae18c0cf90bf73642a8ea77eab364f9ef1..8b638dea2206f07fd4fb6bace8353c336fcc67c5 100644 (file)
@@ -56,7 +56,11 @@ void Entry::autosize_special(const Part &part, Geometry &ageom) const
 
 void Entry::set_text(const string &t)
 {
-       text = t;
+       if(t!=text.get())
+       {
+               text = t;
+               signal_text_changed.emit(text.get());
+       }
        set_edit_position(text.size());
 }