Ignore:
Timestamp:
Jul 12, 2013 10:48:43 AM (9 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
4069c7b
Parents:
b5cfd4d
git-author:
Ken Moore <ken@…> (07/12/13 10:44:39)
git-committer:
Ken Moore <ken@…> (07/12/13 10:48:43)
Message:

Add a bunch of error loggin to the backend processes, and also add a new dialog for displaying these error logs. Also fix the detection of an update failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/mainUI.cpp

    rf3baeb9 rc71b68c  
    7373     connect(PBI,SIGNAL(SearchComplete(QStringList,QStringList)),this,SLOT(slotShowSearchResults(QStringList, QStringList)) ); 
    7474     connect(PBI,SIGNAL(SimilarFound(QStringList)),this,SLOT(slotShowSimilarApps(QStringList)) ); 
    75      connect(PBI,SIGNAL(Error(QString,QString)),this,SLOT(slotDisplayError(QString,QString)) ); 
     75     connect(PBI,SIGNAL(Error(QString,QString,QStringList)),this,SLOT(slotDisplayError(QString,QString,QStringList)) ); 
    7676     PBI->start(); 
    7777 
     
    893893} 
    894894 
    895 void MainUI::slotDisplayError(QString title,QString err){ 
    896   QMessageBox::warning(this,title,err); 
     895void MainUI::slotDisplayError(QString title,QString message,QStringList log){ 
     896  ErrorDialog *dlg = new ErrorDialog(this); 
     897  dlg->setDLGTitle(title); 
     898  dlg->setDLGMessage(message); 
     899  dlg->setDLGLog(log); 
     900  dlg->exec(); 
     901  //QMessageBox::warning(this,title,message+"\n\n"+log.join("\n")); 
    897902} 
    898903 
Note: See TracChangeset for help on using the changeset viewer.