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:
parent
5a3f4e5f4d
commit
11244acc6e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user