Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.cpp
Show First 20 Lines • Show All 1097 Lines • ▼ Show 20 Line(s) | 1096 | if (m_terminalPanel->currentWorkingDirectory().startsWith(mountPath)) { | |||
---|---|---|---|---|---|
1098 | m_terminalPanel->goHome(); | 1098 | m_terminalPanel->goHome(); | ||
1099 | } | 1099 | } | ||
1100 | } | 1100 | } | ||
1101 | 1101 | | |||
1102 | void DolphinMainWindow::setupActions() | 1102 | void DolphinMainWindow::setupActions() | ||
1103 | { | 1103 | { | ||
1104 | // setup 'File' menu | 1104 | // setup 'File' menu | ||
1105 | m_newFileMenu = new DolphinNewFileMenu(actionCollection(), this); | 1105 | m_newFileMenu = new DolphinNewFileMenu(actionCollection(), this); | ||
1106 | m_newFileMenu->setObjectName("newFileMenu"); | | |||
1107 | QMenu* menu = m_newFileMenu->menu(); | 1106 | QMenu* menu = m_newFileMenu->menu(); | ||
1108 | menu->setTitle(i18nc("@title:menu Create new folder, file, link, etc.", "Create New")); | 1107 | menu->setTitle(i18nc("@title:menu Create new folder, file, link, etc.", "Create New")); | ||
1109 | menu->setIcon(QIcon::fromTheme(QStringLiteral("document-new"))); | 1108 | menu->setIcon(QIcon::fromTheme(QStringLiteral("document-new"))); | ||
1110 | m_newFileMenu->setDelayed(false); | 1109 | m_newFileMenu->setDelayed(false); | ||
1111 | connect(menu, &QMenu::aboutToShow, | 1110 | connect(menu, &QMenu::aboutToShow, | ||
1112 | this, &DolphinMainWindow::updateNewMenu); | 1111 | this, &DolphinMainWindow::updateNewMenu); | ||
1113 | 1112 | | |||
1114 | QAction* newWindow = KStandardAction::openNew(this, &DolphinMainWindow::openNewMainWindow, actionCollection()); | 1113 | QAction* newWindow = KStandardAction::openNew(this, &DolphinMainWindow::openNewMainWindow, actionCollection()); | ||
▲ Show 20 Lines • Show All 572 Lines • Show Last 20 Lines |