mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Avoid copying a QUrl in upload() when pasting files from the filesystem.
This commit is contained in:
parent
b55d08df8e
commit
205122ee68
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ void upload(const QMimeData *source, ChannelPtr channel,
|
||||||
}
|
}
|
||||||
else if (source->hasUrls())
|
else if (source->hasUrls())
|
||||||
{
|
{
|
||||||
for (QUrl path : source->urls())
|
for (const QUrl &path : source->urls())
|
||||||
{
|
{
|
||||||
if (getImageFileFormat(path.toLocalFile()) != QString())
|
if (getImageFileFormat(path.toLocalFile()) != QString())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue