Skip to content

Commit

Permalink
Fix issue with display of tutorial and Qt 6.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed May 24, 2024
1 parent 6012dbb commit e9cad6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tutorialmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <QDir>
#include <QList>
#include <QString>
#include <QTimer>

namespace MOBase
{
Expand Down Expand Up @@ -92,7 +93,9 @@ void TutorialManager::registerControl(const QString& windowName,
std::map<QString, QString>::iterator iter = m_PendingTutorials.find(windowName);
if (iter != m_PendingTutorials.end()) {
// there is a pending tutorial for this window, display it
control->startTutorial(m_TutorialPath + iter->second);
QTimer::singleShot(0, [=] {
control->startTutorial(m_TutorialPath + iter->second);
});
m_PendingTutorials.erase(iter);
}
}
Expand Down

0 comments on commit e9cad6c

Please sign in to comment.