1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-25 22:14:32 +00:00

Don't translate file extensions. Closes #1907.

This commit is contained in:
sledgehammer999 2014-08-30 21:54:57 +03:00
parent 94fc2f9c3d
commit 45e95e6cc2
3 changed files with 4 additions and 4 deletions

View File

@ -1202,7 +1202,7 @@ void options_imp::showConnectionTab()
} }
void options_imp::on_btnWebUiCrt_clicked() { void options_imp::on_btnWebUiCrt_clicked() {
QString filename = QFileDialog::getOpenFileName(this, QString(), QString(), tr("SSL Certificate (*.crt *.pem)")); QString filename = QFileDialog::getOpenFileName(this, QString(), QString(), tr("SSL Certificate")+QString(" (*.crt *.pem)"));
if (filename.isNull()) if (filename.isNull())
return; return;
QFile file(filename); QFile file(filename);
@ -1213,7 +1213,7 @@ void options_imp::on_btnWebUiCrt_clicked() {
} }
void options_imp::on_btnWebUiKey_clicked() { void options_imp::on_btnWebUiKey_clicked() {
QString filename = QFileDialog::getOpenFileName(this, QString(), QString(), tr("SSL Key (*.key *.pem)")); QString filename = QFileDialog::getOpenFileName(this, QString(), QString(), tr("SSL Key")+QString(" (*.key *.pem)"));
if (filename.isNull()) if (filename.isNull())
return; return;
QFile file(filename); QFile file(filename);

View File

@ -384,7 +384,7 @@ void AutomatedRssDownloader::on_exportBtn_clicked()
void AutomatedRssDownloader::on_importBtn_clicked() void AutomatedRssDownloader::on_importBtn_clicked()
{ {
// Ask for filter path // Ask for filter path
QString load_path = QFileDialog::getOpenFileName(this, tr("Please point to the RSS download rules file"), QDir::homePath(), tr("Rules list (*.rssrules *.filters)")); QString load_path = QFileDialog::getOpenFileName(this, tr("Please point to the RSS download rules file"), QDir::homePath(), tr("Rules list")+QString(" (*.rssrules *.filters)"));
if (load_path.isEmpty() || !QFile::exists(load_path)) return; if (load_path.isEmpty() || !QFile::exists(load_path)) return;
// Load it // Load it
if (!m_editableRuleList->unserialize(load_path)) { if (!m_editableRuleList->unserialize(load_path)) {

View File

@ -64,7 +64,7 @@ void TorrentImportDlg::on_browseTorrentBtn_clicked()
{ {
const QString default_dir = Preferences::instance()->getMainLastDir(); const QString default_dir = Preferences::instance()->getMainLastDir();
// Ask for a torrent file // Ask for a torrent file
m_torrentPath = QFileDialog::getOpenFileName(this, tr("Torrent file to import"), default_dir, tr("Torrent files (*.torrent)")); m_torrentPath = QFileDialog::getOpenFileName(this, tr("Torrent file to import"), default_dir, tr("Torrent files")+QString(" (*.torrent)"));
if (!m_torrentPath.isEmpty()) { if (!m_torrentPath.isEmpty()) {
loadTorrent(m_torrentPath); loadTorrent(m_torrentPath);
} else { } else {