diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-04 02:09:48 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-04 02:09:48 +0200 |
commit | 643db0927177037646b61cc4af21b9af1428b0e4 (patch) | |
tree | 602f16ae209aa9df32bb0880e1abb0595c66dfa7 /src | |
parent | 734c3fff4e7ba5094a82050ce286db9e20202c79 (diff) | |
download | salmeta-643db0927177037646b61cc4af21b9af1428b0e4.tar.gz salmeta-643db0927177037646b61cc4af21b9af1428b0e4.zip |
emit valid signal
Diffstat (limited to 'src')
-rw-r--r-- | src/widgetinfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgetinfo.cpp b/src/widgetinfo.cpp index f8cd78a..477b61c 100644 --- a/src/widgetinfo.cpp +++ b/src/widgetinfo.cpp @@ -19,8 +19,14 @@ QUrl WidgetInfo::url() const void WidgetInfo::setUrl(const QUrl &url) { if (url != _url) { + const bool cur_valid = valid(); + _url = url; emit urlChanged(); + + if (cur_valid != valid()) { + emit validChanged(); + } } } |