<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>146061</bug_id>
          
          <creation_ts>2007-05-28 11:38:21 +0000</creation_ts>
          <short_desc>umbrello appends &quot;.xmi&quot; to the saved diagram name when it is told not to do so</short_desc>
          <delta_ts>2018-07-17 06:52:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>umbrello</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Debian testing</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Aceituno">cdaceituno</reporter>
          <assigned_to name="Umbrello Development Group">umbrello-devel</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>528476</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Aceituno">cdaceituno</who>
    <bug_when>2007-05-28 11:38:21 +0000</bug_when>
    <thetext>Version:           1.5.7 (using KDE KDE 3.5.7)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc version 4.1.3 20070514 (prerelease) (Debian 4.1.2-7) 
OS:                Linux

Whenever the &quot;Save as...&quot; dialog is used, umbrello appends &quot;.xmi&quot; to the saved diagram name even when the &quot;append .xmi...&quot; checkbox is not checked. What&apos;s more, if you select an already existing file to be overwritten, a new file with the original name plus &quot;.xmi&quot; is created.

This happens in Debian testing/unstable with Umbrello 1.5.7 compiled from sources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531266</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2007-06-12 20:03:58 +0000</bug_when>
    <thetext>Strange.
I saw this IRL but when I went hunting in GDB it no longer happened.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>540566</commentid>
    <comment_count>2</comment_count>
    <who name="Oliver Kellogg">okellogg</who>
    <bug_when>2007-08-12 02:57:28 +0000</bug_when>
    <thetext>SVN commit 699102 by okellogg:

slotFileSaveAs(): Apply commit 695283 from trunk which works fine, thanks Sharan.
BUG:146061


 M  +1 -0      ChangeLog  
 M  +0 -9      umbrello/uml.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #699101:699102
@@ -2,6 +2,7 @@
 
 * Bugs/wishes from http://bugs.kde.org:
 * Cannot move text and label correctly after enabling snap to grid (137041)
+* Umbrello gratuitously appends &quot;.xmi&quot; to the saved file name (146061)
 * Wrong pascal code generation (146676)
 * Crash when linking to undefined xmi.id (146748)
 * End Activity Symbol gets invalid when line thickness is increased (146925)
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/uml.cpp #699101:699102
@@ -734,15 +734,6 @@
         if(url.isEmpty())
             cont = false;
         else {
-            // now check that we have a file extension; standard will be plain xmi
-            QString file = url.path(-1);
-            QFileInfo info(file);
-            ext = info.extension();
-            if (ext != &quot;xmi&quot; &amp;&amp; ext != &quot;xmi.tgz&quot; &amp;&amp; ext != &quot;xmi.tar.bz2&quot;)
-            {
-                url.setFileName(url.fileName() + &quot;.xmi&quot;);
-                ext = &quot;xmi&quot;;
-            }
             QDir d = url.path(-1);
 
             if(QFile::exists(d.path())) {
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767325</commentid>
    <comment_count>3</comment_count>
    <who name="Ralf Habacker">ralf.habacker</who>
    <bug_when>2018-07-17 06:52:00 +0000</bug_when>
    <thetext>Git commit 9a8d91e23d7a39ac88bff6c9e38efdceec9a9933 by Ralf Habacker.
Committed on 17/07/2018 at 06:19.
Pushed by habacker into branch &apos;master&apos;.

Remove commented out code

M  +0    -9    umbrello/uml.cpp

https://commits.kde.org/umbrello/9a8d91e23d7a39ac88bff6c9e38efdceec9a9933</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>