Fixed signal-slot connecting bug

preferencesAboutTextFull
Anna Udovichenko 12 years ago
parent b484dae47f
commit 88ad16b413
  1. 1
      src/gui/UBFeaturesActionBar.cpp
  2. 1
      src/gui/UBFeaturesWidget.cpp

@ -75,6 +75,7 @@ UBFeaturesActionBar::UBFeaturesActionBar( UBFeaturesController *controller, QWid
connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString))); connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString)));
connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder()));*/ connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder()));*/
connect(mpFavoriteAction,SIGNAL(triggered()), this, SLOT(onActionFavorite()));
connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString))); connect(mSearchBar, SIGNAL(textChanged(QString)), this, SLOT(onSearchTextChanged(QString)));
connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder())); connect(mpNewFolderAction, SIGNAL(triggered()), this, SLOT(onActionNewFolder()));
connect(mpRemoveFavorite, SIGNAL(triggered()), this, SLOT(onActionRemoveFavorite())); connect(mpRemoveFavorite, SIGNAL(triggered()), this, SLOT(onActionRemoveFavorite()));

@ -286,6 +286,7 @@ void UBFeaturesWidget::deleteSelectedElements()
foreach ( QModelIndex sel, selected ) foreach ( QModelIndex sel, selected )
{ {
UBFeature feature = sel.data( Qt::UserRole + 1 ).value<UBFeature>(); UBFeature feature = sel.data( Qt::UserRole + 1 ).value<UBFeature>();
if ( feature.isDeletable() )
urls.append( feature.getFullPath() ); urls.append( feature.getFullPath() );
} }

Loading…
Cancel
Save