Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Umbrello
Commits
24afb594
Commit
24afb594
authored
May 26, 2014
by
Ralf Habacker
Browse files
Inform user about failed zargo file import.
CCBUG:56184
parent
900fd73f
Changes
1
Hide whitespace changes
Inline
Side-by-side
umbrello/umldoc.cpp
View file @
24afb594
...
...
@@ -547,12 +547,15 @@ bool UMLDoc::openDocument(const KUrl& url, const char* format /* =0 */)
newDocument
();
}
else
if
(
filetype
.
endsWith
(
QLatin1String
(
".zargo"
)))
{
m_doc_url
.
setFileName
(
i18n
(
"Untitled"
));
status
=
Import_Argo
::
loadFromZArgoFile
(
file
);
if
(
status
)
{
m_doc_url
.
setFileName
(
i18n
(
"Untitled"
))
;
}
e
lse
if
(
!
status
)
{
KMessageBox
::
error
(
0
,
i18n
(
"There was a problem loading file: %1"
,
url
.
pathOrUrl
(
))
,
i18n
(
"Load Error"
));
m_bLoading
=
fa
lse
;
newDocument
();
return
false
;
}
}
else
{
status
=
loadFromXMI
(
file
,
ENC_UNKNOWN
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment