Skip to content

Commit 7982bfd

Browse files
Warn if former app is not active
1 parent 0d337ac commit 7982bfd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

kratos.gid/kratos.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,11 @@ proc Kratos::TransformProblemtype {old_dom old_filespd} {
395395

396396
# Get the old app
397397
set old_activeapp_node [$old_dom selectNodes "//hiddenfield\[@n='activeapp'\]"]
398+
set old_activeapp ""
398399
if {$old_activeapp_node ne ""} {
399400
set old_activeapp [get_domnode_attribute $old_activeapp_node v]
400-
} else {
401+
}
402+
if {$old_activeapp eq ""} {
401403
WarnWin "Unable to get the active application in your model"
402404
return ""
403405
}

0 commit comments

Comments
 (0)