Skip to content

Commit

Permalink
Merge pull request #178 from Nighty3098/InDev
Browse files Browse the repository at this point in the history
🚀 Fixed app crash
  • Loading branch information
Nighty3098 authored Dec 5, 2024
2 parents c7343f4 + 6f74d3a commit 5742d22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Binary file modified CodeKeeper
Binary file not shown.
Binary file modified src/CodeKeeper/CodeKeeper
Binary file not shown.
13 changes: 11 additions & 2 deletions src/CodeKeeper/keeperFunc/tasksFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,24 @@ void MainWindow::addNewTask()
qDebug() << "Added new task: " << task;
incompleteTasks->addItem(task);
QString status = incompleteTasks->objectName();
QString projectLink = "";
QString projectLink = projectsList->currentText();
if (projectLink.isEmpty())
{
projectLink = "NULL";
}
if (projectLink == "ALL")
{
projectLink = "NULL";
}

saveTaskToDB(&task, &status, &projectLink);
}
else
{
qWarning() << "Task is empty";
}

filterTasksByProject(projectList);
filterTasksByProject(projectsList);
}

void MainWindow::removeTask()
Expand Down

0 comments on commit 5742d22

Please sign in to comment.