git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@105 b624d157-de02-0410-bad0-e51aec6abb33
master
tarek_saidi 18 years ago
parent 21f0fea56a
commit f3fd0c681c
  1. 7
      src/lib/UrlLabel.cpp
  2. 3
      src/main.cpp

@ -52,9 +52,10 @@ else return text();
}
void LinkLabel::mouseReleaseEvent(QMouseEvent* event){
if(event->button()==Qt::LeftButton)
emit clicked();
openBrowser(url());
if(event->button()==Qt::LeftButton){
emit clicked();
openBrowser(url());
}
}
void LinkLabel::setPos(int x,int y){

@ -217,10 +217,9 @@ QString decodeFileError(QFile::FileError Code){
}
void openBrowser(QString url){
QProcess browser;
QStringList args=config.OpenUrlCommand.arg(url).split(' ');
QString cmd=args.takeFirst();
browser.startDetached(cmd,args);
QProcess::startDetached(cmd,args);
}