aboutdialog.cpp
changeset 392 18f824bd3070
parent 381 c79df732d095
child 395 7ced3733ba60
     1.1 --- a/aboutdialog.cpp	Fri Sep 08 12:30:09 2006 +0000
     1.2 +++ b/aboutdialog.cpp	Mon Oct 16 12:42:54 2006 +0000
     1.3 @@ -5,10 +5,8 @@
     1.4  #include "aboutdialog.h"
     1.5  #include "version.h"
     1.6  #include "settings.h"
     1.7 -#include "mainwindow.h"
     1.8  
     1.9  
    1.10 -extern Main *mainWindow;
    1.11  extern Settings settings;
    1.12  extern QString iconPath;
    1.13  
    1.14 @@ -191,5 +189,11 @@
    1.15  {
    1.16  	QProcess *proc= new QProcess ();
    1.17  	proc->start( settings.value("/mainwindow/readerURL").toString(),QStringList ()<<url.toString());
    1.18 -	if (!proc->waitForStarted() &&mainWindow->settingsURL() ) setSource(url);
    1.19 +	//if (!proc->waitForStarted() &&mainWindow->settingsURL() ) setSource(url);
    1.20 +	if (!proc->waitForStarted() )
    1.21 +		QMessageBox::warning(0, 
    1.22 +		tr("Warning"),
    1.23 +		tr("Couldn't find a viewer to open %1.\n").arg(url)+
    1.24 +		tr("Please use Settings->")+tr("Set application to open an URL"));
    1.25 +
    1.26  }