View | Details | Raw Unified | Return to bug 483942
Collapse All | Expand All

(-)YCP_UI.cc (-1 / +8 lines)
Lines 1063-1069 Link Here
1063
1063
1064
void YCP_UI::DumpWidgetTree()
1064
void YCP_UI::DumpWidgetTree()
1065
{
1065
{
1066
    YDialog::currentDialog()->dumpDialogWidgetTree();
1066
    // do not throw exception, so as not to abort the whole thing
1067
    // if there happens to be no dialog (#483942)
1068
    YDialog *currentDialog = YDialog::currentDialog(false);
1069
1070
    if (currentDialog) 
1071
        currentDialog->dumpDialogWidgetTree();
1072
    else
1073
	yuiWarning() << "No dialog exists (bad luck :(), nothing to dump" << endl;
1067
}
1074
}
1068
1075
1069
/**
1076
/**

Return to bug 483942