replaced removeFirst with mid

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-08-18 20:19:51 +03:00
parent 44ff247f5f
commit 4c52b18bdd
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;