mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-17 09:34:10 -05:00
moved all getOpenFilename to use misc::getOpenFilename
This commit is contained in:
parent
c643d1e672
commit
5fac5a8d76
5 changed files with 22 additions and 11 deletions
|
|
@ -20,6 +20,7 @@
|
|||
****************************************************************/
|
||||
|
||||
#include "PluginManagerWidget.h"
|
||||
#include "gui/settings/rsharesettings.h"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
|
|
@ -160,14 +161,10 @@ PluginManagerWidget::registerNewPlugin(QString pluginName)
|
|||
void
|
||||
PluginManagerWidget::installPluginButtonClicked()
|
||||
{
|
||||
QString fileName = QFileDialog::getOpenFileName(this,
|
||||
tr("Open Plugin to install"),
|
||||
"./",
|
||||
tr("Plugins (*.so *.dll)"));
|
||||
QString fileName = misc::getOpenFileName(this, RshareSettings::LASTDIR_PLUGIN, tr("Open Plugin to install"), "./", tr("Plugins (*.so *.dll)"));
|
||||
|
||||
if (!fileName.isNull())
|
||||
{
|
||||
emit installPluginRequested(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue