Commit 29cc889c authored by Otmane Lahlou's avatar Otmane Lahlou

ENH: use mid instead of mid() when extracting substring

parent 2adbd04a
......@@ -160,12 +160,11 @@ void QtWidgetInputImageParameter::dropEvent(QDropEvent *event)
// text stored in mimeData contains 'file://' at the begining
// it has to be removed
QString url( event->mimeData()->text() );
url.replace(0, 7, "");
//
// TODO : Experimental, check on win32 if that works
// this->SetFileName( url );
m_Input->setText(url);
this->SetFileName( url.mid(7) );
//m_Input->setText( url.mid(7) );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment