Patch : correct behavior for saving

Robert Schwede <[email protected]> Fri, 07 Aug 2009 12:14:01 +0200
Newsgroups gmane.comp.audio.jamin.devel
Message-ID <1249640041.5198.7.camel@jupiter>
Hi,

jamin seems not to recognize the filename of a file opend with "jamin -f
<thefile> ". When i try to save the file after changing something, jamin
asks for the filename, although it should already know it. I wrote a
simple patch that resolves this issue.
I'm not a c++ programmer, so please double check for obvious errors.

Robert

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Jamin-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jamin-devel
save.patch (text/x-patch, 338 B)
Index: src/state.c
===================================================================
RCS file: /cvsroot/jamin/jamin/src/state.c,v
retrieving revision 1.73
diff -r1.73 state.c
671a672
>     int is_default_session = FALSE;
682a684
> 	is_default_session = TRUE;
811c813
<     if (!fname) {
---
>     if (is_default_session) {
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkp7/mkACgkQuhaKqboS0QUCoACfVeNFz059N+YFJvQ+VmCkWMAb
+qAAnRtfQXRd+ug+JYllnA6uVfQA7X3K
=EqaK
-----END PGP SIGNATURE-----