aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance/VersionPage.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-10 14:48:34 -0300
committerflow <flowlnlnln@gmail.com>2022-08-20 10:47:58 -0300
commit97a74d5c1f00a11d331a41b16690f7202fe102a3 (patch)
treee49ff4b05f4ac241a2df4920f3c6b4832bc0d252 /launcher/ui/pages/instance/VersionPage.cpp
parent256f8094f5fed85ff9136e8d0b9c9677d7b9e9db (diff)
downloadPrismLauncher-97a74d5c1f00a11d331a41b16690f7202fe102a3.tar.gz
PrismLauncher-97a74d5c1f00a11d331a41b16690f7202fe102a3.tar.bz2
PrismLauncher-97a74d5c1f00a11d331a41b16690f7202fe102a3.zip
refactor: adapt rest of the codebase to the new resource model
In order to access the ModFolderModel from the ModFolderPage, i created a new m_model for the correct type, shadowing the m_model of type ResourceFolderModel. This creates two shared_ptr references to the same object, but since they will have the same lifetime, it doesn't generate a memory leak. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/pages/instance/VersionPage.cpp')
-rw-r--r--launcher/ui/pages/instance/VersionPage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/pages/instance/VersionPage.cpp b/launcher/ui/pages/instance/VersionPage.cpp
index 468ff35c..a021c633 100644
--- a/launcher/ui/pages/instance/VersionPage.cpp
+++ b/launcher/ui/pages/instance/VersionPage.cpp
@@ -196,10 +196,10 @@ void VersionPage::packageCurrent(const QModelIndex &current, const QModelIndex &
switch(severity)
{
case ProblemSeverity::Warning:
- ui->frame->setModText(tr("%1 possibly has issues.").arg(patch->getName()));
+ ui->frame->setName(tr("%1 possibly has issues.").arg(patch->getName()));
break;
case ProblemSeverity::Error:
- ui->frame->setModText(tr("%1 has issues!").arg(patch->getName()));
+ ui->frame->setName(tr("%1 has issues!").arg(patch->getName()));
break;
default:
case ProblemSeverity::None:
@@ -222,7 +222,7 @@ void VersionPage::packageCurrent(const QModelIndex &current, const QModelIndex &
problemOut += problem.m_description;
problemOut += "\n";
}
- ui->frame->setModDescription(problemOut);
+ ui->frame->setDescription(problemOut);
}
void VersionPage::updateRunningStatus(bool running)