File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,11 @@ void CFavoriteView::slotConnect()
276276 auto lstIndex = selectionModel ()->selectedIndexes ();
277277 foreach (auto index, lstIndex)
278278 {
279- slotFavortiedoubleClicked (index);
279+ auto item = m_pModel->itemFromIndex (index);
280+ if (!item) return ;
281+ QString szFile = item->data ().toString ();
282+ if (!szFile.isEmpty ())
283+ emit sigConnect (szFile, false );
280284 }
281285}
282286
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ MainWindow::MainWindow(QWidget *parent)
151151 check = connect (&m_Parameter, SIGNAL (sigFavoriteEditChanged (bool )),
152152 m_pFavoriteView, SLOT (slotDoubleEditNode (bool )));
153153 Q_ASSERT (check);
154+ emit m_Parameter.sigFavoriteEditChanged (m_Parameter.GetFavoriteEdit ());
154155 m_pDockFavorite->setWidget (m_pFavoriteView);
155156 m_pDockFavorite->setWindowTitle (m_pFavoriteView->windowTitle ());
156157 }
You can’t perform that action at this time.
0 commit comments