summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp38
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp3
2 files changed, 5 insertions, 36 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 8cc5d7b..56e3282 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -357,7 +357,8 @@ void AdvancedFm::keyPressEvent( QKeyEvent *e) {
void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
// if( CurrentView()->hasFocus() )
// e->ignore();
- if( currentPathCombo->lineEdit()->hasFocus()) {
+
+ if( currentPathCombo->lineEdit()->hasFocus()) {
// qDebug("shout!");
}
@@ -369,42 +370,9 @@ void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
setOtherTabCurrent();
else if( e->key() == Key_Delete )
del();
- else if( e->key() == Key_A)
- copyAs();
- else if( e->key() == Key_C)
- copy();
- else if( e->key() == Key_E)
- runThis();
- else if( e->key() == Key_G)
- currentPathCombo->lineEdit()->setFocus();
- else if( e->key() == Key_H )
- showHidden();
- else if( e->key() == Key_I)
- fileStatus();
- else if( e->key() == Key_M)
- move();
- else if( e->key() == Key_N )
- mkDir();
- else if( e->key() == Key_P)
- filePerms();
- else if( e->key() == Key_R )
- rn();
- else if( e->key() == Key_U )
- upDir();
- else if( e->key() == Key_1)
- switchToLocalTab();
- else if( e->key() == Key_2)
- switchToRemoteTab();
- else if( e->key() == Key_3)
- CFButtonPushed();
- else if( e->key() == Key_4)
- SDButtonPushed();
- else if( e->key() == Key_5 )
- homeButtonPushed();
- else if( e->key() == Key_6 )
- docButtonPushed();
else
e->accept();
+
}
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 6abdc85..80324eb 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -865,7 +865,8 @@ void AdvancedFm::okRename() {
QListViewItem *item = view->currentItem();
view->takeItem( item );
delete item;
- rePopulate();
+ populateView();
+
}
void AdvancedFm::openSearch() {