Skip to content

Commit

Permalink
Update build.yml & fix pointer issue (#45)
Browse files Browse the repository at this point in the history
* Update build.yml

* fix pointer issue
  • Loading branch information
elysia-best authored Nov 13, 2024
1 parent c96c59f commit 24261b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ permissions: write-all

on:
push:
branches: [ main ]
branches: [ "main", "*.*" ]
tags:
- "v*.*.*"
pull_request:
branches: [ main ]
branches: [ "main", "*.*" ]

jobs:
debian:
Expand Down
4 changes: 2 additions & 2 deletions src/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void Application::insertPlugin() {
void Application::addPage(QString title, QString name, QString page,
QString iconSource, QString iconColor,
QString category) {
QObject *mainObject = m_engine.rootObjects().first();
QObject *mainObject = m_engine->rootObjects().first();

if (mainObject) {
QMetaObject::invokeMethod(
Expand All @@ -159,7 +159,7 @@ void Application::addPage(QString title, QString name, QString page,
}

void Application::switchToPage(const QString &name) {
QObject *mainObject = m_engine.rootObjects().first();
QObject *mainObject = m_engine->rootObjects().first();

if (mainObject) {
QMetaObject::invokeMethod(mainObject, "switchPageFromName",
Expand Down

0 comments on commit 24261b2

Please sign in to comment.