1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-01-27 15:25:24 -05:00

Merge pull request #622 from DaveDavenport/next

Correctly switch to other RofiViewState.
This commit is contained in:
Dave Davenport 2017-07-05 08:43:12 +02:00 committed by GitHub
commit 46cff2d919

View file

@ -1378,8 +1378,12 @@ void rofi_view_maybe_update ( RofiViewState *state )
if ( rofi_view_get_completed ( state ) ) {
// This menu is done.
rofi_view_finalize ( state );
// cleanup
if ( rofi_view_get_active () == NULL ) {
// If there a state. (for example error) reload it.
state = rofi_view_get_active ();
// cleanup, if no more state to display.
if ( state == NULL ) {
// Quit main-loop.
rofi_quit_main_loop ();
return;
}