Skip to content

Commit

Permalink
itemsync: Avoid conflicting notes and text (hluk#2457)
Browse files Browse the repository at this point in the history
Fixes hluk#2355
  • Loading branch information
hluk authored Sep 10, 2023
1 parent 42c02f2 commit 090713a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/itemsync/filewatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ Ext findByExtension(const QString &fileName, const QList<FileFormat> &formatSett
if ( fileName.endsWith(dataFileSuffix) )
return Ext(dataFileSuffix, mimeUnknownFormats);

// Avoid conflicting notes with text.
if ( fileName.endsWith(noteFileSuffix) )
return Ext(noteFileSuffix, mimeItemNotes);

// Find in user defined formats.
bool hasUserFormat = false;
for (const auto &format : formatSettings) {
Expand Down

0 comments on commit 090713a

Please sign in to comment.