Changeset View
Changeset View
Standalone View
Standalone View
krusader/krslots.cpp
Context not available. | |||||
289 | if (MAIN_VIEW->cmdLine()->isVisible() || !MAIN_VIEW->terminalDock()->isTerminalVisible()) { | 289 | if (MAIN_VIEW->cmdLine()->isVisible() || !MAIN_VIEW->terminalDock()->isTerminalVisible()) { | ||
---|---|---|---|---|---|
290 | QString current = MAIN_VIEW->cmdLine()->text(); | 290 | QString current = MAIN_VIEW->cmdLine()->text(); | ||
291 | if (current.length() != 0 && !current.endsWith(' ')) | 291 | if (current.length() != 0 && !current.endsWith(' ')) | ||
292 | current += ' '; | 292 | current += ' '; | ||
293 | MAIN_VIEW->cmdLine()->setText(current + filename); | 293 | MAIN_VIEW->cmdLine()->setText(current + filename); | ||
294 | MAIN_VIEW->cmdLine()->setFocus(); | 294 | MAIN_VIEW->cmdLine()->setFocus(); | ||
295 | } else if (MAIN_VIEW->terminalDock()->isTerminalVisible()) { | 295 | } else if (MAIN_VIEW->terminalDock()->isTerminalVisible()) { | ||
296 | filename = QChar(' ') + filename + QChar(' '); | 296 | filename = QChar(' ') + filename + QChar(' '); | ||
297 | MAIN_VIEW->terminalDock()->sendInput(filename); | 297 | MAIN_VIEW->terminalDock()->sendInput(filename, false); | ||
298 | MAIN_VIEW->terminalDock()->setFocus(); | 298 | MAIN_VIEW->terminalDock()->setFocus(); | ||
299 | } | 299 | } | ||
300 | } | 300 | } | ||
301 | 301 | | |||
302 | void KRslots::refresh(const QUrl &u) | 302 | void KRslots::refresh(const QUrl &u) | ||
303 | { | 303 | { | ||
304 | ACTIVE_FUNC->openUrl(u); | 304 | ACTIVE_FUNC->openUrl(u); | ||
305 | } | 305 | } | ||
Context not available. |