Skip to content

Commit

Permalink
fix: Fix the issue of empty interface after exiting the slide show
Browse files Browse the repository at this point in the history
  Fix the issue of empty interface after exiting the slide show

Log: Fix the issue of empty interface after exiting the slide show
Bug: https://pms.uniontech.com/bug-view-205055.html
  • Loading branch information
starhcq committed Nov 6, 2023
1 parent f78eb8b commit cc94b9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/album/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ void MainWindow::onNewAPPOpen(qint64 pid, const QStringList &arguments)

void MainWindow::onSigViewImage(const SignalManager::ViewInfo &info, OpenImgAdditionalOperation operation, bool isCustom, const QString &album, int UID)
{
m_backIndex = info.viewMainWindowID;
m_backIndex = m_iCurrentView;
auto finalUseAlbum = album;

if (operation == Operation_NoOperation || operation == Operation_FullScreen) {
Expand Down Expand Up @@ -1605,6 +1605,8 @@ void MainWindow::onSigViewImage(const SignalManager::ViewInfo &info, OpenImgAddi
m_imageViewer->startSlideShow(paths, info.path);
}
m_backIndex_fromFullScreen = info.viewMainWindowID;

m_backIndex_fromFullScreen = m_pCenterWidget->currentIndex();
break;
}

Expand Down Expand Up @@ -2366,7 +2368,7 @@ void MainWindow::onHideFromFullScreen()
setTitleBarHideden(false);
}

m_pCenterWidget->setCurrentIndex(m_backIndex_fromFullScreen);
m_pCenterWidget->setCurrentIndex(m_backIndex);
}

void MainWindow::onExportImage(QStringList paths)

Check warning on line 2374 in src/album/mainwindow.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

Parameter 'paths' is passed by value. It could be passed as a const reference which is usually faster and recommended in C++.
Expand Down

0 comments on commit cc94b9d

Please sign in to comment.