Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/msgdialog.c

    rd0dfbba ra188131  
    11/*
    2  * Copyright (c) 2026 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3434 */
    3535
    36 #include <assert.h>
    3736#include <errno.h>
    3837#include <mem.h>
     
    286285        if (dialog->cb != NULL && dialog->cb->close != NULL)
    287286                dialog->cb->close(dialog, dialog->arg);
    288         else
    289                 ui_msg_dialog_destroy(dialog);
    290287}
    291288
     
    313310                                dialog->cb->button(dialog, dialog->arg, 0);
    314311                                return;
    315                         } else {
    316                                 ui_msg_dialog_destroy(dialog);
    317312                        }
    318313                } else if (event->key == KC_ESCAPE) {
     
    321316                                dialog->cb->close(dialog, dialog->arg);
    322317                                return;
    323                         } else {
    324                                 ui_msg_dialog_destroy(dialog);
    325318                        }
    326319                }
     
    344337                                dialog->cb->button(dialog, dialog->arg, i);
    345338                }
    346         } else {
    347                 ui_msg_dialog_destroy(dialog);
    348339        }
    349340}
Note: See TracChangeset for help on using the changeset viewer.