Changeset 11465


Ignore:
Timestamp:
11/22/11 09:04:32 (12 years ago)
Author:
black
Message:

[titan] [panel] add message when no ipk's found to install (online/tmp)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/panel/panel_extensions.h

    r11445 r11465  
    1616//              char* section = ostrcat(section, ipklistbox(NULL, tmpstr, NULL, "Ipk Install - select section", "%pluginpath%/panel/skin/", 1), 1, 1);
    1717                section = ipklistbox(NULL, tmpstr, NULL, "Ipk Install - select section", "%pluginpath%/panel/skin/", 1);
     18                if(tmpstr == NULL){
     19                        textbox(_("Ipk Install Info"), _("No section found"), "EXIT", getrcconfigint("rcexit", NULL), "OK", getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
     20                }
    1821                free(tmpstr); tmpstr = NULL;
    1922
     
    7679                free(file); file = NULL;
    7780                file = ipklistbox(NULL, tmpstr, NULL, "Ipk Tmp Install - select file", "%pluginpath%/panel/skin/", 0);
     81                if(tmpstr == NULL){
     82                        textbox(_("Ipk Tmp Info"), _("No IPK found in /tmp"), "EXIT", getrcconfigint("rcexit", NULL), "OK", getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0);
     83                }
    7884                free(tmpstr); tmpstr = NULL;
    7985                debug(60, "file: %s", file);
Note: See TracChangeset for help on using the changeset viewer.