Bug 98142 - saving files in kig
Summary: saving files in kig
Status: RESOLVED FIXED
Alias: None
Product: kig
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Pino Toscano
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 12:11 UTC by david merlin
Modified: 2005-04-20 16:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david merlin 2005-01-29 12:11:15 UTC
Version:           v0.9.0 (using KDE 3.2.2,  (testing/unstable))
Compiler:          gcc version 3.3.3 (Debian 20040401)
OS:                Linux (i686) release 2.4.26

I would like to use kig v 0.9.0 but I find problems in saving files.

any time I try to save this message appears:

Kig does not support saving to any other file format than its own.
Save to Kig's format instead?

but I am specifying in the file type the Kig format!
In any case I press yes and the file is "saved".

But once the file is saved with extension .kig the program is not able
to open it. It looks like as the application is not able to recognize
its format.

any suggestion?
am I forgetting something?

many thanks in advance

David Merlin
Comment 1 Pino Toscano 2005-04-11 00:59:18 UTC
> but I am specifying in the file type the Kig format! 
> In any case I press yes and the file is "saved". 

What did you specify as file name the first time you saved the file (ie when you used the Save As) ?

> But once the file is saved with extension .kig the program is not able 
> to open it. It looks like as the application is not able to recognize 
> its format. 

Why? Are you able to see it in the Open file dialog?
Could you send (even privately) the saved file?
Comment 2 Pino Toscano 2005-04-16 10:55:32 UTC
CVS commit by pino: 

Fixing a small issue when saving a file with no name set.
The name wasn't empty, but it contained a temp file. Luckly m_bTemp stores wheth
er using a temp file.

I hope this could fix #98142.

CCBUG: 98142

David, could this solve your problem?


  M +1 -1      kig_part.cpp   1.173.2.2


--- kdeedu/kig/kig/kig_part.cpp  #1.173.2.1:1.173.2.2
@@ -423,5 +423,5 @@ bool KigPart::openFile()
 bool KigPart::saveFile()
 {
-  if ( m_file.isEmpty() ) return internalSaveAs();
+  if ( m_file.isEmpty() || m_bTemp ) return internalSaveAs();
   // mimetype:
   KMimeType::Ptr mimeType = KMimeType::findByPath ( m_file );
Comment 3 david merlin 2005-04-16 21:33:10 UTC
OK,

now it works!

many thanks
Comment 4 Pino Toscano 2005-04-16 21:39:47 UTC
> now it works!


So can I close this bug?
Comment 5 Pino Toscano 2005-04-20 16:44:34 UTC
The reported told me that his problem is effectively fixed, so I can close this bug as such.