use clipboard text only if valid url
This commit is contained in:
parent
2f5b84cfc7
commit
64215894a9
@ -75,7 +75,10 @@ FormDiscoverFeeds::FormDiscoverFeeds(ServiceRoot* service_root,
|
|||||||
&FormDiscoverFeeds::onFeedSelectionChanged);
|
&FormDiscoverFeeds::onFeedSelectionChanged);
|
||||||
|
|
||||||
m_ui.m_pbDiscovery->setVisible(false);
|
m_ui.m_pbDiscovery->setVisible(false);
|
||||||
|
|
||||||
|
if (QUrl(url).isValid()) {
|
||||||
m_ui.m_txtUrl->lineEdit()->setText(url);
|
m_ui.m_txtUrl->lineEdit()->setText(url);
|
||||||
|
}
|
||||||
|
|
||||||
if (url.isEmpty()) {
|
if (url.isEmpty()) {
|
||||||
emit m_ui.m_txtUrl->lineEdit()->textChanged(url);
|
emit m_ui.m_txtUrl->lineEdit()->textChanged(url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user