summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <dev.git@javispedro.com>2014-09-04 02:09:48 +0200
committerJavier S. Pedro <dev.git@javispedro.com>2014-09-04 02:09:48 +0200
commit643db0927177037646b61cc4af21b9af1428b0e4 (patch)
tree602f16ae209aa9df32bb0880e1abb0595c66dfa7
parent734c3fff4e7ba5094a82050ce286db9e20202c79 (diff)
downloadsalmeta-643db0927177037646b61cc4af21b9af1428b0e4.tar.gz
salmeta-643db0927177037646b61cc4af21b9af1428b0e4.zip
emit valid signal
-rw-r--r--src/widgetinfo.cpp6
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();
+ }
}
}