@ -744,12 +744,19 @@ void BitcoinGUI::dropEvent(QDropEvent *event)
{
{
if ( event - > mimeData ( ) - > hasUrls ( ) )
if ( event - > mimeData ( ) - > hasUrls ( ) )
{
{
gotoSendCoinsPage ( ) ;
int nValidUrisFound = 0 ;
QList < QUrl > uris = event - > mimeData ( ) - > urls ( ) ;
QList < QUrl > uris = event - > mimeData ( ) - > urls ( ) ;
foreach ( const QUrl & uri , uris )
foreach ( const QUrl & uri , uris )
{
{
sendCoinsPage - > handleURI ( uri . toString ( ) ) ;
if ( sendCoinsPage - > handleURI ( uri . toString ( ) ) )
nValidUrisFound + + ;
}
}
// if valid URIs were found
if ( nValidUrisFound )
gotoSendCoinsPage ( ) ;
else
notificator - > notify ( Notificator : : Warning , tr ( " URI handling " ) , tr ( " URI can not be parsed! This can be caused by an invalid Bitcoin address or malformed URI parameters. " ) ) ;
}
}
event - > acceptProposedAction ( ) ;
event - > acceptProposedAction ( ) ;
@ -757,10 +764,14 @@ void BitcoinGUI::dropEvent(QDropEvent *event)
void BitcoinGUI : : handleURI ( QString strURI )
void BitcoinGUI : : handleURI ( QString strURI )
{
{
gotoSendCoinsPage ( ) ;
// URI has to be valid
sendCoinsPage - > handleURI ( strURI ) ;
if ( sendCoinsPage - > handleURI ( strURI ) )
{
showNormalIfMinimized ( ) ;
showNormalIfMinimized ( ) ;
gotoSendCoinsPage ( ) ;
}
else
notificator - > notify ( Notificator : : Warning , tr ( " URI handling " ) , tr ( " URI can not be parsed! This can be caused by an invalid Bitcoin address or malformed URI parameters. " ) ) ;
}
}
void BitcoinGUI : : setEncryptionStatus ( int status )
void BitcoinGUI : : setEncryptionStatus ( int status )