Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.cpp
Show First 20 Lines • Show All 2083 Lines • ▼ Show 20 Line(s) | 2082 | if (mainWin) { | |||
---|---|---|---|---|---|
2084 | container->showMessage(job->errorString(), DolphinViewContainer::Error); | 2084 | container->showMessage(job->errorString(), DolphinViewContainer::Error); | ||
2085 | } else { | 2085 | } else { | ||
2086 | KIO::FileUndoManager::UiInterface::jobError(job); | 2086 | KIO::FileUndoManager::UiInterface::jobError(job); | ||
2087 | } | 2087 | } | ||
2088 | } | 2088 | } | ||
2089 | 2089 | | |||
2090 | bool DolphinMainWindow::isUrlOpen(const QString& url) | 2090 | bool DolphinMainWindow::isUrlOpen(const QString& url) | ||
2091 | { | 2091 | { | ||
2092 | if (m_tabWidget->getIndexByUrl(QUrl::fromUserInput((url))) >= 0) { | 2092 | if (m_tabWidget->getIndexByUrl(QUrl::fromUserInput((url))).first >= 0) { | ||
2093 | return true; | 2093 | return true; | ||
2094 | } else { | 2094 | } else { | ||
2095 | return false; | 2095 | return false; | ||
2096 | } | 2096 | } | ||
2097 | } | 2097 | } | ||
2098 | 2098 | |