Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/panelfunc.cpp
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | 237 | { | |||
---|---|---|---|---|---|
310 | 310 | | |||
311 | // NOTE: this is blocking. Returns false on error or interruption (cancel requested or panel | 311 | // NOTE: this is blocking. Returns false on error or interruption (cancel requested or panel | ||
312 | // was deleted) | 312 | // was deleted) | ||
313 | const bool refreshed = fileSystemP->refresh(url); | 313 | const bool refreshed = fileSystemP->refresh(url); | ||
314 | if (refreshed) { | 314 | if (refreshed) { | ||
315 | // update the history and address bar, as the actual url might differ from the one requested | 315 | // update the history and address bar, as the actual url might differ from the one requested | ||
316 | history->setCurrentUrl(fileSystemP->currentDirectory()); | 316 | history->setCurrentUrl(fileSystemP->currentDirectory()); | ||
317 | panel->setNavigatorUrl(fileSystemP->currentDirectory()); | 317 | panel->setNavigatorUrl(fileSystemP->currentDirectory()); | ||
318 | } else if (!panel) { | ||||
319 | // this panel was deleted while refreshing | ||||
320 | return; | ||||
318 | } | 321 | } | ||
319 | 322 | | |||
320 | panel->view->setNameToMakeCurrent(QString()); | 323 | panel->view->setNameToMakeCurrent(QString()); | ||
321 | 324 | | |||
322 | panel->setCursor(Qt::ArrowCursor); | 325 | panel->setCursor(Qt::ArrowCursor); | ||
323 | 326 | | |||
324 | // on local file system change the working directory | 327 | // on local file system change the working directory | ||
325 | if (files()->isLocal()) | 328 | if (files()->isLocal()) | ||
▲ Show 20 Lines • Show All 902 Lines • Show Last 20 Lines |