close-cd #130425 【文件管理器】插拔手机后未退出手机目录

This commit is contained in:
yangling 2023-04-12 14:32:39 +08:00 committed by Yue-Lan
parent a9fc05264f
commit 2357699897
1 changed files with 2 additions and 1 deletions

View File

@ -841,7 +841,8 @@ void TabWidget::slot_responseUnmounted(const QString &destUri, const QString &so
{
//all window accessed mount path should goto self top pathrelated to bug#104551
if((Peony::GlobalSettings::getInstance()->getValue("LAST_FOCUS_PEONY_WINID") == dynamic_cast<MainWindow *>(this->topLevelWidget())->winId()
||KWindowSystem::hasWId(dynamic_cast<MainWindow *>(this->topLevelWidget())->winId()))
||KWindowSystem::hasWId(dynamic_cast<MainWindow *>(this->topLevelWidget())->winId())
||QApplication::topLevelWidgets().contains(this->topLevelWidget()))
&& index == currentIndex){
qDebug()<<"sourceUri:"<<sourceUri<<"change to self top path"<<" index:"<<currentIndex;
if (uri.startsWith("filesafe:///"))