Logo Search packages:      
Sourcecode: qapt version File versions  Download package

void QApt::Backend::undo (  )  [slot]

Un-performs the last action performed to the package cache

Definition at line 551 of file backend.cpp.

References currentCacheState(), and restoreCacheState().

{
    Q_D(Backend);

    if (d->undoStack.isEmpty()) {
        return;
    }

    // Place current state on redo stack
    d->redoStack.prepend(currentCacheState());

    CacheState state = d->undoStack.takeFirst();
    restoreCacheState(state);
}


Generated by  Doxygen 1.6.0   Back to index