click to inactive file list won't change selection
[case] / src / case.cpp
index bac6bac..721bdaf 100644 (file)
@@ -67,8 +67,8 @@ Case::Case(QWidget *parent) :
 
     layout->addWidget(fileOperator);
 
-    connect(this, SIGNAL(activePaneSwitched()), leftPane, SLOT(toggleActive()));
-    connect(this, SIGNAL(activePaneSwitched()), rightPane, SLOT(toggleActive()));
+    connect(leftPane, SIGNAL(switchPanes()), this, SLOT(switchActivePane()));
+    connect(rightPane, SIGNAL(switchPanes()), this, SLOT(switchActivePane()));
 
     connect(cloneBtn, SIGNAL(pressed()), this, SLOT(clonePane()));
     connect(swapBtn, SIGNAL(pressed()), this, SLOT(swapPanes()));
@@ -89,7 +89,8 @@ void Case::switchActivePane() {
     moveBtn->swapIcon();
     delBtn->swapIcon();
 
-    emit activePaneSwitched();
+    activePane->toggleActive();
+    inactivePane->toggleActive();
 }