mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 00:27:27 -04:00
RS_ prefix
This commit is contained in:
parent
584b9039c9
commit
50ee33b229
6 changed files with 42 additions and 30 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "gui/common/GroupDefs.h"
|
||||
#include "gui/notifyqt.h"
|
||||
#include "util/QtVersion.h"
|
||||
#include "util/misc.h"
|
||||
|
||||
/* Images for context menu icons */
|
||||
#define IMAGE_CANCEL ":/images/delete.png"
|
||||
|
@ -123,11 +124,7 @@ void ShareManager::doubleClickedCell(int row,int column)
|
|||
{
|
||||
if(column == COLUMN_PATH)
|
||||
{
|
||||
#ifdef NATIVEDIALOGS
|
||||
QString dirname = QFileDialog::getExistingDirectory(NULL,tr("Choose directory"),QString(), QFileDialog::ShowDirsOnly);
|
||||
#else
|
||||
QString dirname = QFileDialog::getExistingDirectory(NULL,tr("Choose directory"),QString(),QFileDialog::DontUseNativeDialog | QFileDialog::ShowDirsOnly);
|
||||
#endif
|
||||
QString dirname = misc::getExistingDirectory(nullptr,tr("Choose directory"),QString());
|
||||
|
||||
if(!dirname.isNull())
|
||||
{
|
||||
|
@ -361,11 +358,7 @@ void ShareManager::showEvent(QShowEvent *event)
|
|||
|
||||
void ShareManager::addShare()
|
||||
{
|
||||
#ifdef NATIVEDIALOGS
|
||||
QString fname = QFileDialog::getExistingDirectory(NULL,tr("Choose a directory to share"),QString(), QFileDialog::ShowDirsOnly);
|
||||
#else
|
||||
QString fname = QFileDialog::getExistingDirectory(NULL,tr("Choose a directory to share"),QString(),QFileDialog::DontUseNativeDialog | QFileDialog::ShowDirsOnly);
|
||||
#endif
|
||||
QString fname = misc::getExistingDirectory(nullptr,tr("Choose a directory to share"),QString());
|
||||
|
||||
if(fname.isNull())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue