Add *.fits extension into filter
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ bool ImageRingList::setDir(const QString path, const QString ¤tFile)
|
||||
if(dir.exists())
|
||||
{
|
||||
QStringList nameFilter;
|
||||
nameFilter << "*.jpg" << "*.png" << "*.cr2" << "*.fit";
|
||||
nameFilter << "*.jpg" << "*.png" << "*.cr2" << "*.fit" << "*.fits";
|
||||
|
||||
QStringList list = dir.entryList(nameFilter, QDir::Files | QDir::Readable, m_liveMode ? QDir::Time : QDir::Name);
|
||||
QStringList absolutePaths;
|
||||
|
||||
+1
-1
@@ -268,7 +268,7 @@ void LoadRunable::run()
|
||||
raw = true;
|
||||
qDebug() << "LoadRaw" << timer.elapsed();
|
||||
}
|
||||
else if(m_file.endsWith(".FIT", Qt::CaseInsensitive))
|
||||
else if(m_file.endsWith(".FIT", Qt::CaseInsensitive) || m_file.endsWith(".FITS", Qt::CaseInsensitive))
|
||||
{
|
||||
loadFITS(m_file, info, m_analyzeLevel != None ? &rawImage : nullptr, &img);
|
||||
}
|
||||
|
||||
+1
-1
@@ -204,7 +204,7 @@ void MainWindow::openFile()
|
||||
if(standardLocations.size())
|
||||
path = standardLocations.first();
|
||||
|
||||
QString file = QFileDialog::getOpenFileName(this, tr("Open file"), path, tr("Images (*.jpg *.png *.cr2 *.fit *.JPG *.PNG *.CR2 *.FIT)"));
|
||||
QString file = QFileDialog::getOpenFileName(this, tr("Open file"), path, tr("Images (*.jpg *.png *.cr2 *.fit *.fits *.JPG *.PNG *.CR2 *.FIT *.FITS)"));
|
||||
if(!file.isEmpty())
|
||||
{
|
||||
QFileInfo info(file);
|
||||
|
||||
Reference in New Issue
Block a user