# # # patch "src/model/Workspace.cpp" # from [86ba2597c1bc1ca022362d3e5c4a93245342be52] # to [2e2e0360fa9790fc042e538c317c5376d53f2d68] # ============================================================ --- src/model/Workspace.cpp 86ba2597c1bc1ca022362d3e5c4a93245342be52 +++ src/model/Workspace.cpp 2e2e0360fa9790fc042e538c317c5376d53f2d68 @@ -50,6 +50,8 @@ bool Workspace::setWorkspaceDir(QString workspace) { + // FIXME: if an invalid directory is selected, the current active + // view gets its model deleted and thus is cleared! if(modelPresent) { deleteModel(); @@ -353,6 +355,8 @@ QString &path, bool &isDirectory) { + // FIXME: we need to break here and ensure that no item + // is created if we really can't parse the inputString if (regex->indexIn(inputString) == -1) { qWarning("Couldn't parse inventory line %s", qPrintable(inputString));