Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/panelfunc.cpp
Context not available. | |||||
56 | #include "dirhistoryqueue.h" | 56 | #include "dirhistoryqueue.h" | ||
---|---|---|---|---|---|
57 | #include "krcalcspacedialog.h" | 57 | #include "krcalcspacedialog.h" | ||
58 | #include "krerrordisplay.h" | 58 | #include "krerrordisplay.h" | ||
59 | #include "krsearchbar.h" | ||||
59 | #include "listpanel.h" | 60 | #include "listpanel.h" | ||
60 | #include "listpanelactions.h" | 61 | #include "listpanelactions.h" | ||
61 | #include "PanelView/krview.h" | 62 | #include "PanelView/krview.h" | ||
Context not available. | |||||
436 | 437 | | |||
437 | void ListPanelFunc::view() | 438 | void ListPanelFunc::view() | ||
438 | { | 439 | { | ||
nmel: As I [[ https://bugs.kde.org/show_bug.cgi?id=394939#c4 |mentioned in another discussion ]]… | |||||
Mmm... in that discussion there were two persons (https://bugs.kde.org/show_bug.cgi?id=394939#c2 , https://bugs.kde.org/show_bug.cgi?id=394939#c3) that agreed that it's better that users don't have to press Esc every time after those quicksearchs. Total Commander, Double Commander (and Krusader 2.4.0-beta3) also work this way. asensi: Mmm... in that discussion there were two persons (https://bugs.kde.org/show_bug.cgi? | |||||
440 | panel->searchBar->hideBarIfSearching(); | ||||
441 | | ||||
439 | QString fileName = panel->getCurrentName(); | 442 | QString fileName = panel->getCurrentName(); | ||
440 | if (fileName.isNull()) | 443 | if (fileName.isNull()) | ||
441 | return; | 444 | return; | ||
Context not available. | |||||
470 | 473 | | |||
471 | void ListPanelFunc::edit() | 474 | void ListPanelFunc::edit() | ||
472 | { | 475 | { | ||
476 | panel->searchBar->hideBarIfSearching(); | ||||
473 | KFileItem tmp; | 477 | KFileItem tmp; | ||
474 | 478 | | |||
475 | if (fileToCreate.isEmpty()) { | 479 | if (fileToCreate.isEmpty()) { | ||
Context not available. | |||||
542 | 546 | | |||
543 | void ListPanelFunc::copyFiles(bool enqueue, bool move) | 547 | void ListPanelFunc::copyFiles(bool enqueue, bool move) | ||
544 | { | 548 | { | ||
549 | panel->searchBar->hideBarIfSearching(); | ||||
550 | | ||||
545 | const QStringList fileNames = panel->getSelectedNames(); | 551 | const QStringList fileNames = panel->getSelectedNames(); | ||
546 | if (fileNames.isEmpty()) | 552 | if (fileNames.isEmpty()) | ||
547 | return ; // safety | 553 | return ; // safety | ||
Context not available. | |||||
615 | // called from SLOTS to begin the renaming process | 621 | // called from SLOTS to begin the renaming process | ||
616 | void ListPanelFunc::rename() | 622 | void ListPanelFunc::rename() | ||
617 | { | 623 | { | ||
624 | panel->searchBar->hideBarIfSearching(); | ||||
618 | panel->view->renameCurrentItem(); | 625 | panel->view->renameCurrentItem(); | ||
619 | } | 626 | } | ||
620 | 627 | | |||
Context not available. | |||||
673 | 680 | | |||
674 | void ListPanelFunc::deleteFiles(bool moveToTrash) | 681 | void ListPanelFunc::deleteFiles(bool moveToTrash) | ||
675 | { | 682 | { | ||
683 | panel->searchBar->hideBarIfSearching(); | ||||
684 | | ||||
676 | if (files()->type() == FileSystem::FS_VIRTUAL && files()->isRoot()) { | 685 | if (files()->type() == FileSystem::FS_VIRTUAL && files()->isRoot()) { | ||
677 | // only virtual deletion possible | 686 | // only virtual deletion possible | ||
678 | removeVirtualFiles(); | 687 | removeVirtualFiles(); | ||
Context not available. |
As I mentioned in another discussion, it's a useful feature to not close the bar in this and a few other cases.