Refractor save dialog
This commit is contained in:
+5
-4
@@ -541,9 +541,10 @@ bool readXISFHeader(const QString &path, ImageInfoData &info)
|
||||
return true;
|
||||
}
|
||||
|
||||
ConvertRunable::ConvertRunable(const QString &in, const QString &out) :
|
||||
ConvertRunable::ConvertRunable(const QString &in, const QString &out, const QString &format) :
|
||||
m_infile(in),
|
||||
m_outfile(out)
|
||||
m_outfile(out),
|
||||
m_format(format)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -648,7 +649,7 @@ void ConvertRunable::run()
|
||||
|
||||
if(rawimage)
|
||||
{
|
||||
if(m_outfile.endsWith(".XISF", Qt::CaseInsensitive))
|
||||
if(m_format == "XISF")
|
||||
{
|
||||
pcl::XISFOptions options;
|
||||
pcl::FITSKeywordArray fitskeywords;
|
||||
@@ -675,7 +676,7 @@ void ConvertRunable::run()
|
||||
|
||||
}
|
||||
|
||||
if(m_outfile.endsWith(".FITS", Qt::CaseInsensitive) || m_outfile.endsWith(".FIT", Qt::CaseInsensitive))
|
||||
if(m_format == "FITS")
|
||||
{
|
||||
int status = 0;
|
||||
fitsfile *fw;
|
||||
|
||||
Reference in New Issue
Block a user