fixed issue about refreshing image directory when a capture is saved on the library

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent d7bd098f68
commit f5287497d2
  1. 1
      src/board/UBLibraryController.cpp
  2. 1
      src/board/UBLibraryController.h
  3. 2
      src/gui/UBLibraryWidget.cpp

@ -167,6 +167,7 @@ void UBLibraryController::importImageOnLibrary(QImage& pImage)
filePath = UBFileSystemUtils::normalizeFilePath(filePath);
pImage.save(filePath);
UBApplication::showMessage(tr("Added 1 Image to Library"));
emit updateItemsList();
}
}

@ -130,6 +130,7 @@ class UBLibraryController : public QObject
signals:
void dialogClosed(int state);
void setResource(QString &pathResource,QString &mimetype);
void updateItemsList();
public slots:
void removeBackground();

@ -91,6 +91,8 @@ void UBLibraryWidget::init()
connect(this, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged()));
connect(UBDownloadManager::downloadManager(), SIGNAL(addDownloadedFileToLibrary(bool,QUrl,QString,QByteArray)), this, SLOT(onAddDownloadedFileToLibrary(bool,QUrl,QString,QByteArray)));
connect(UBApplication::boardController, SIGNAL(displayMetadata(QMap<QString,QString>)), this, SLOT(onDisplayMetadata(QMap<QString,QString>)));
connect(mLibraryController,SIGNAL(updateItemsList()),this,SLOT(onRefreshCurrentFolder()));
}
/**

Loading…
Cancel
Save