Changeset 403:d75595c30084 in SMSSender


Ignore:
Timestamp:
May 5, 2014 1:19:28 PM (4 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
default
Message:
  • Moves the exception message dialog into an own class.
Location:
frontend/gui
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • frontend/gui/frontend-gui.pro

    r364 r403  
    6363    ui/editcontact.h \
    6464    ui/editgroup.h \
     65    ui/exceptionmessagebox.h \
    6566    ui/guiintegrationhelper.h \
    6667    ui/guimanager.h \
     
    112113    ui/editcontact.cpp \
    113114    ui/editgroup.cpp \
     115    ui/exceptionmessagebox.cpp \
    114116    ui/guiintegrationhelper.cpp \
    115117    ui/guimanager.cpp \
  • frontend/gui/ui/guimanager.cpp

    r382 r403  
    2323
    2424#include "common/utils/smacros.h"
     25#include "frontend/gui/ui/exceptionmessagebox.h"
    2526#include "frontend/gui/ui/sendingdialog.h"
    2627
     
    5960    Q_ASSERT(QThread::currentThread() == qApp->thread());
    6061
    61     QScopedPointer<QMessageBox> msg(new QMessageBox(parent));
    62     msg->setIcon(QMessageBox::Warning);
    63     msg->setWindowTitle(QObject::tr("Error occured"));
    64     msg->setStandardButtons(QMessageBox::Ok);
    65     msg->setText(message);
    66     msg->setInformativeText(exception.unchainedWhat());
    67     if (exception.hasChainedException()) {
    68         msg->setDetailedText(exception.chainedException().chainedWhat());
    69     }
    70     msg->setDefaultButton(QMessageBox::Ok);
    71 
    72     return execDialog(msg.take());
     62    return execDialog(new ExceptionMessageBox(message, exception, parent));
    7363}
    7464
Note: See TracChangeset for help on using the changeset viewer.