Fix calling GUI methods from script thread

This commit is contained in:
2024-06-08 20:11:25 +02:00
parent 461ffea874
commit 66f0c05a48
5 changed files with 60 additions and 21 deletions
+5 -3
View File
@@ -615,7 +615,7 @@ void ConvertRunable::run()
if(rawimage)
{
if(m_format == "XISF")
if(m_format == "xisf")
{
try
{
@@ -674,9 +674,10 @@ void ConvertRunable::run()
{
qDebug() << "Failed to save XISF image" << err.what();
}
return;
}
if(m_format == "FITS")
if(m_format == "fits")
{
int status = 0;
fitsfile *fw;
@@ -691,9 +692,10 @@ void ConvertRunable::run()
}
writeFITSImage(fw, rawimage, imageinfo);
fits_close_file(fw, &status);
return;
}
if(m_format == "QIMAGE")
// if nothing else try QImage
{
QImage::Format format = QImage::Format_Invalid;
int width = rawimage->widthBytes();