Commit 59d1691f authored by Jasem Mutlaq's avatar Jasem Mutlaq

Update image viewer call to reflect latest API changes

parent a38709ca
......@@ -1206,10 +1206,14 @@ void ObservingList::saveImage( QUrl /*url*/, QString /*filename*/, const SkyObje
}
void ObservingList::slotImageViewer() {
ImageViewer *iv = 0;
void ObservingList::slotImageViewer()
{
QPointer<ImageViewer> iv;
if( QFile::exists( CurrentImagePath ) )
iv = new ImageViewer( CurrentImagePath, this );
{
QUrl url = QUrl::fromLocalFile(CurrentImagePath);
iv = new ImageViewer( url );
}
if( iv )
iv->show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment