Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.cpp
Show First 20 Lines • Show All 2154 Lines • ▼ Show 20 Line(s) | 2153 | if (mainWin) { | |||
---|---|---|---|---|---|
2155 | container->showMessage(job->errorString(), DolphinViewContainer::Error); | 2155 | container->showMessage(job->errorString(), DolphinViewContainer::Error); | ||
2156 | } else { | 2156 | } else { | ||
2157 | KIO::FileUndoManager::UiInterface::jobError(job); | 2157 | KIO::FileUndoManager::UiInterface::jobError(job); | ||
2158 | } | 2158 | } | ||
2159 | } | 2159 | } | ||
2160 | 2160 | | |||
2161 | bool DolphinMainWindow::isUrlOpen(const QString& url) | 2161 | bool DolphinMainWindow::isUrlOpen(const QString& url) | ||
2162 | { | 2162 | { | ||
2163 | if (m_tabWidget->getIndexByUrl(QUrl::fromUserInput((url))).first >= 0) { | 2163 | return m_tabWidget->isUrlOpen(QUrl::fromUserInput((url))); | ||
2164 | return true; | | |||
2165 | } else { | | |||
2166 | return false; | | |||
2167 | } | | |||
2168 | } | 2164 | } | ||
2169 | 2165 | |