Skip to content

Commit

Permalink
Qview command line Fix (DOI-USGS#5505)
Browse files Browse the repository at this point in the history
* Avoid double image load when opening cubes from cmdline in qview

* Added changelog entry

* Revert interval change
  • Loading branch information
acpaquette authored and chkim-usgs committed Nov 26, 2024
1 parent b2b87a0 commit e8c38f4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion isis/src/qisis/objs/CubeViewport/ViewportBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,14 @@ namespace Isis {
* @return bool
*/
bool ViewportBuffer::working() {
return !p_actions->empty() || !p_bufferInitialized || !p_enabled;
bool hasFillAction = false;
for (auto action : *p_actions) {
if (action->getActionType() == ViewportBufferAction::fill) {
hasFillAction = true;
break;
}
}
return hasFillAction || !p_bufferInitialized || !p_enabled;
}


Expand Down

0 comments on commit e8c38f4

Please sign in to comment.