1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fixed crash when dragging site with empty url from siteicon

This commit is contained in:
nowrep 2012-09-06 11:29:05 +02:00
parent 5a3f4e5f4d
commit 11244acc6e

View File

@ -65,8 +65,13 @@ void SiteIcon::mouseMoveEvent(QMouseEvent* e)
return;
}
QUrl url = m_locationBar->webView()->url();
QString title = m_locationBar->webView()->title();
const QUrl &url = m_locationBar->webView()->url();
const QString &title = m_locationBar->webView()->title();
if (url.isEmpty() || title.isEmpty()) {
ToolButton::mouseMoveEvent(e);
return;
}
QDrag* drag = new QDrag(this);
QMimeData* mime = new QMimeData;