mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Only try to extract images if the image uploader is enabled (#4246)
* Only try to extract images if the image uploader is enabled * Add changelog entry
This commit is contained in:
parent
fdb0a1582c
commit
a9a985bde1
|
@ -14,6 +14,7 @@
|
||||||
- Bugfix: Fixed unnecessary saving of windows layout. (#4201)
|
- Bugfix: Fixed unnecessary saving of windows layout. (#4201)
|
||||||
- Bugfix: Fixed Reply window missing selection clear behaviour between chat and input box. (#4218)
|
- Bugfix: Fixed Reply window missing selection clear behaviour between chat and input box. (#4218)
|
||||||
- Bugfix: Fixed crash that could occur when changing Tab layout and utilizing multiple windows. (#4248)
|
- Bugfix: Fixed crash that could occur when changing Tab layout and utilizing multiple windows. (#4248)
|
||||||
|
- Bugfix: Fixed text sometimes not pasting properly when image uploader was disabled. (#4246)
|
||||||
- Dev: Remove protocol from QApplication's Organization Domain (so changed from `https://www.chatterino.com` to `chatterino.com`). (#4256)
|
- Dev: Remove protocol from QApplication's Organization Domain (so changed from `https://www.chatterino.com` to `chatterino.com`). (#4256)
|
||||||
- Dev: Ignore `WM_SHOWWINDOW` hide events, causing fewer attempted rescales. (#4198)
|
- Dev: Ignore `WM_SHOWWINDOW` hide events, causing fewer attempted rescales. (#4198)
|
||||||
- Dev: Migrated to C++ 20 (#4252, #4257)
|
- Dev: Migrated to C++ 20 (#4252, #4257)
|
||||||
|
|
|
@ -286,6 +286,8 @@ bool ResizingTextEdit::canInsertFromMimeData(const QMimeData *source) const
|
||||||
|
|
||||||
void ResizingTextEdit::insertFromMimeData(const QMimeData *source)
|
void ResizingTextEdit::insertFromMimeData(const QMimeData *source)
|
||||||
{
|
{
|
||||||
|
if (getSettings()->imageUploaderEnabled)
|
||||||
|
{
|
||||||
if (source->hasImage())
|
if (source->hasImage())
|
||||||
{
|
{
|
||||||
this->imagePasted.invoke(source);
|
this->imagePasted.invoke(source);
|
||||||
|
@ -312,6 +314,7 @@ void ResizingTextEdit::insertFromMimeData(const QMimeData *source)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
insertPlainText(source->text());
|
insertPlainText(source->text());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue