aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-18 20:19:51 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-18 20:19:51 +0300
commit4c52b18bdd3112b5e92de61860fd8eff8ecdde9b (patch)
tree4aecbe581b3a2fc65440283c18f88888672d8bb2 /launcher/ui/pages
parent44ff247f5f71ebeb95423ca37bf82d9913073522 (diff)
downloadPrismLauncher-4c52b18bdd3112b5e92de61860fd8eff8ecdde9b.tar.gz
PrismLauncher-4c52b18bdd3112b5e92de61860fd8eff8ecdde9b.tar.bz2
PrismLauncher-4c52b18bdd3112b5e92de61860fd8eff8ecdde9b.zip
replaced removeFirst with mid
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/pages')
-rw-r--r--launcher/ui/pages/modplatform/ResourceModel.cpp2
-rw-r--r--launcher/ui/pages/modplatform/flame/FlameModel.cpp2
-rw-r--r--launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/pages/modplatform/ResourceModel.cpp b/launcher/ui/pages/modplatform/ResourceModel.cpp
index 96803531..74c1d217 100644
--- a/launcher/ui/pages/modplatform/ResourceModel.cpp
+++ b/launcher/ui/pages/modplatform/ResourceModel.cpp
@@ -133,7 +133,7 @@ void ResourceModel::search()
return;
if (m_search_term.startsWith("#")) {
- auto projectId = m_search_term.removeFirst();
+ auto projectId = m_search_term.mid(1);
if (!projectId.isEmpty()) {
ResourceAPI::ProjectInfoCallbacks callbacks;
diff --git a/launcher/ui/pages/modplatform/flame/FlameModel.cpp b/launcher/ui/pages/modplatform/flame/FlameModel.cpp
index e488f078..e4388c24 100644
--- a/launcher/ui/pages/modplatform/flame/FlameModel.cpp
+++ b/launcher/ui/pages/modplatform/flame/FlameModel.cpp
@@ -164,7 +164,7 @@ void ListModel::fetchMore(const QModelIndex& parent)
void ListModel::performPaginatedSearch()
{
if (currentSearchTerm.startsWith("#")) {
- auto projectId = currentSearchTerm.removeFirst();
+ auto projectId = currentSearchTerm.mid(1);
if (!projectId.isEmpty()) {
ResourceAPI::ProjectInfoCallbacks callbacks;
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
index 16949eba..36a1c47a 100644
--- a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
+++ b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp
@@ -134,7 +134,7 @@ void ModpackListModel::performPaginatedSearch()
return;
if (currentSearchTerm.startsWith("#")) {
- auto projectId = currentSearchTerm.removeFirst();
+ auto projectId = currentSearchTerm.mid(1);
if (!projectId.isEmpty()) {
ResourceAPI::ProjectInfoCallbacks callbacks;