summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-08-17 20:35:33 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-08-17 20:41:31 (GMT)
commitb844859fc5d79ef2ca60df10cab0c0ffdf31a171 (patch)
treee1ba4a4953883038b29f6e337c799db95c715550
parentff5332eb8263a57867b16931982dae53f077a940 (diff)
Add an assert.
We should really change the function prototype to prevent things like this, but for the time being, this is better than nothing.
-rw-r--r--kstars/tools/observinglist.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index fd0d552..2db47fb 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -1133,6 +1133,7 @@ void ObservingList::slotCustomDSS() {
void ObservingList::slotGetImage( bool _dss, const SkyObject *o ) {
dss = _dss;
+ Q_ASSERT( !o || o == currentObject() ); // FIXME: Meaningless to operate on CurrentImage and CurrentImagePath unless o == currentObject()!
if( !o )
o = currentObject();
ui->SearchImage->setEnabled( false );