Cleanup: Move stringToList to core/qthelper.cpp

The same code was used in desktop and undo commands. Let's unify.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-01-10 07:09:17 +08:00 committed by bstoeger
parent c495a49b1b
commit 2a97934db4
4 changed files with 9 additions and 17 deletions

View file

@ -631,14 +631,6 @@ void MainTab::divesEdited(int i)
ui.multiDiveWarningMessage->show();
}
static QStringList stringToList(const QString &s)
{
QStringList res = s.split(",", QString::SkipEmptyParts);
for (QString &str: res)
str = str.trimmed();
return res;
}
void MainTab::on_buddy_editingFinished()
{
if (editMode == IGNORE_MODE || !current_dive)