GUI: do not check file extensions (for dragging & dropping .lnk or other files)
This commit is contained in:
parent
24ca2b4af3
commit
94fad3a0c4
|
|
@ -586,13 +586,10 @@ void MainWindow::dropEvent(QDropEvent* pEvent)
|
|||
if(pEvent->mimeData()->hasUrls())
|
||||
{
|
||||
QString filename = QDir::toNativeSeparators(pEvent->mimeData()->urls()[0].toLocalFile());
|
||||
if(filename.contains(".exe", Qt::CaseInsensitive) || filename.contains(".dll", Qt::CaseInsensitive))
|
||||
{
|
||||
if(DbgIsDebugging())
|
||||
DbgCmdExecDirect("stop");
|
||||
QString cmd;
|
||||
DbgCmdExec(cmd.sprintf("init \"%s\"", filename.toUtf8().constData()).toUtf8().constData());
|
||||
}
|
||||
if(DbgIsDebugging())
|
||||
DbgCmdExecDirect("stop");
|
||||
QString cmd;
|
||||
DbgCmdExec(cmd.sprintf("init \"%s\"", filename.toUtf8().constData()).toUtf8().constData());
|
||||
pEvent->acceptProposedAction();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue