Changeset View
Changeset View
Standalone View
Standalone View
src/dolphincontextmenu.cpp
Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Line(s) | 420 | { | |||
---|---|---|---|---|---|
423 | if (!m_mainWindow->menuBar()->isVisible() && !m_mainWindow->toolBar()->isVisible()) { | 423 | if (!m_mainWindow->menuBar()->isVisible() && !m_mainWindow->toolBar()->isVisible()) { | ||
424 | addSeparator(); | 424 | addSeparator(); | ||
425 | addAction(showMenuBar); | 425 | addAction(showMenuBar); | ||
426 | } | 426 | } | ||
427 | } | 427 | } | ||
428 | 428 | | |||
429 | bool DolphinContextMenu::placeExists(const QUrl& url) const | 429 | bool DolphinContextMenu::placeExists(const QUrl& url) const | ||
430 | { | 430 | { | ||
431 | Q_UNUSED(url) | ||||
431 | // Creating up a PlacesItemModel to find out if 'url' is one of the Places | 432 | // Creating up a PlacesItemModel to find out if 'url' is one of the Places | ||
432 | // can be expensive because the model asks Solid for the devices which are | 433 | // can be expensive because the model asks Solid for the devices which are | ||
433 | // available, which can take some time. | 434 | // available, which can take some time. | ||
434 | // TODO: Consider restoring this check if the handling of Places and devices | 435 | // TODO: Consider restoring this check if the handling of Places and devices | ||
435 | // will be decoupled in the future. | 436 | // will be decoupled in the future. | ||
436 | return false; | 437 | return false; | ||
437 | } | 438 | } | ||
438 | 439 | | |||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |