mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
don't use temporaries when uneeded
This commit is contained in:
parent
9b2a9704ee
commit
e1ba299b29
|
@ -64,8 +64,7 @@ void Panel::setUrl(const QUrl& url)
|
|||
|
||||
const QUrl oldUrl = m_url;
|
||||
m_url = url;
|
||||
const bool accepted = urlChanged();
|
||||
if (!accepted) {
|
||||
if (!urlChanged()) {
|
||||
m_url = oldUrl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue