Patch #1558763
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@105 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
		
							parent
							
								
									21f0fea56a
								
							
						
					
					
						commit
						f3fd0c681c
					
				| 
						 | 
					@ -52,9 +52,10 @@ else return text();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void LinkLabel::mouseReleaseEvent(QMouseEvent* event){
 | 
					void LinkLabel::mouseReleaseEvent(QMouseEvent* event){
 | 
				
			||||||
if(event->button()==Qt::LeftButton)
 | 
						if(event->button()==Qt::LeftButton){
 | 
				
			||||||
emit clicked();
 | 
							emit clicked();
 | 
				
			||||||
openBrowser(url());
 | 
							openBrowser(url());
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void LinkLabel::setPos(int x,int y){
 | 
					void LinkLabel::setPos(int x,int y){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -217,10 +217,9 @@ QString decodeFileError(QFile::FileError Code){
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void openBrowser(QString url){
 | 
					void openBrowser(QString url){
 | 
				
			||||||
QProcess browser;
 | 
					 | 
				
			||||||
QStringList args=config.OpenUrlCommand.arg(url).split(' ');
 | 
					QStringList args=config.OpenUrlCommand.arg(url).split(' ');
 | 
				
			||||||
QString cmd=args.takeFirst();
 | 
					QString cmd=args.takeFirst();
 | 
				
			||||||
browser.startDetached(cmd,args);
 | 
					QProcess::startDetached(cmd,args);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue