Bug 72788 - Unknown filters in Save Sky Image
Summary: Unknown filters in Save Sky Image
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kstars
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-17 00:48 UTC by Mike De Lange
Modified: 2004-01-27 09:14 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 Mike De Lange 2004-01-17 00:48:43 UTC
Version:           1.0 (Latest CVS Snapshot) (using KDE KDE 3.1.3)
Installed from:    Compiled From Sources
Compiler:          gcc version 3.3.1 
OS:          Linux

In the "Save Sky Image..." option under the File menu, when you go to choose a file type to save your image as, there are three "Unknown" file types:

-------------------
All Supported Files
PNG Image
Unknown
GIF Image
Unknown
Unknown
-------------------
Comment 1 kstars 2004-01-17 01:08:58 UTC
Confirmed.  The problem is, we specify the filter string as:
"image/png image/jpg image/gif image/pnm image/bmp"

After examining the "File associations" tab of the konqueror config tool, I am guessing that some of those are not recognized Mime types.  After the deep freeze, we'll have to change the following:

image/jpg  -->  image/jpeg
image/pnm  -->  image/x-portable-pixmap
image/bmp  -->  image/x-bmp

Who can claim to understand the mysteries behind Mime-type names?  Not I.

Thanks for the report.
Comment 2 kstars 2004-01-27 09:14:38 UTC
Subject: kdeedu/kstars/kstars

CVS commit by harris: 

Fixing bug #72788 (Unknown filters in Save Sky Image)
Backporting to KDE_3_2_BRANCH as well.

CCMAIL: 72788-done@bugs.kde.org
CCMAIL: kstars-devel@kde.org


  M +4 -4      kstarsactions.cpp   1.80


--- kdeedu/kstars/kstars/kstarsactions.cpp  #1.79:1.80
@@ -291,5 +291,5 @@ void KStars::closeWindow() {
 
 void KStars::slotExportImage() {
-        KURL fileURL = KFileDialog::getSaveURL( QDir::homeDirPath(), "image/png image/jpg image/gif image/pnm image/bmp" );
+        KURL fileURL = KFileDialog::getSaveURL( QDir::homeDirPath(), "image/png image/jpeg image/gif image/x-portable-pixmap image/x-bmp" );
         KTempFile tmpfile;
         QString fname;