OSDN Git Service

Ver0.21
authorMasayuki Satoh <miyabi.satoh@gmail.com>
Sun, 14 Sep 2014 15:10:05 +0000 (00:10 +0900)
committerMasayuki Satoh <miyabi.satoh@gmail.com>
Sun, 14 Sep 2014 15:10:05 +0000 (00:10 +0900)
mainwindow.cpp

index 4e8a653..d090548 100644 (file)
@@ -1136,8 +1136,8 @@ void MainWindow::onRename()
 \r
     opDlg.exec();\r
 \r
-    focusItemView()->setCurrentIndex(\r
-                activeModel()->search(dlg->renameMap().first()));\r
+    QFileInfo fi(dlg->renameMap().first());\r
+    focusItemView()->setCurrentIndex(activeModel()->search(fi.fileName()));\r
 \r
     prefs.setAutoCloseRename(opDlg.autoClose());\r
 }\r