mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Merge pull request #1039 from ONLYOFFICE/patch/develop_r3
Patch/develop
This commit is contained in:
@ -394,6 +394,9 @@ namespace CEditorTools
|
||||
AscAppManager::GetFileFormatByExtentionForSave(pSaveData->get_Path());
|
||||
|
||||
pSaveData->put_FileType(format > -1 ? format : 0);
|
||||
#ifdef _WIN32
|
||||
Utils::addToRecent(_full_path.toStdWString());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -250,8 +250,10 @@ QStringList CFileDialogWrapper::modalOpen(const QString& path, const QString& fi
|
||||
tr("Presentations") + " (*.pptx *.ppt *.odp *.otp *.ppsm *.ppsx *.pps *.potx *.pot *.potm *.fodp *.dps *.dpt *.sxi);;" +
|
||||
tr("Web Page") + " (*.html *.htm *.mht *.mhtml *.epub);;" +
|
||||
tr("Text files") + " (*.txt *.csv)";
|
||||
#ifdef __linux__
|
||||
_all_sup_files = tr("All supported files") + " " + joinExtentions(_filter_);
|
||||
_filter_.prepend(_all_sup_files + ";;");
|
||||
#endif
|
||||
_filter_.append(";;" + m_mapFilters[AVS_OFFICESTUDIO_FILE_UNKNOWN]);
|
||||
}
|
||||
const QString _default_sel_filter = _all_sup_files.isEmpty() ?
|
||||
|
||||
@ -1165,7 +1165,7 @@ bool CTabBar::eventFilter(QObject *watched, QEvent *event)
|
||||
} else
|
||||
if (mouse_event->button() == Qt::MiddleButton) {
|
||||
for (int i = 0; i < d->tabList.size(); i++) {
|
||||
if (d->tabList[i]->close_btn->underMouse()) {
|
||||
if (d->_tabRect(i).contains(mouse_event->pos())) {
|
||||
emit tabCloseRequested(i);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user