SHA256
1
0
forked from pool/purpose
purpose/build.patch

27 lines
1.1 KiB
Diff

diff --git a/src/plugins/reviewboard/quick/rbrepositoriesmodel.h b/src/plugins/reviewboard/quick/rbrepositoriesmodel.h
index 9a1a568..cd27015 100644
--- a/src/plugins/reviewboard/quick/rbrepositoriesmodel.h
+++ b/src/plugins/reviewboard/quick/rbrepositoriesmodel.h
@@ -54,7 +54,7 @@ private:
struct Value {
QVariant name;
QVariant path;
- bool operator<(const Value &v1) {
+ bool operator<(const Value &v1) const {
return name.toString() < v1.name.toString();
}
};
diff --git a/src/widgets/menu.cpp b/src/widgets/menu.cpp
index 8e6309f..6dc9974 100644
--- a/src/widgets/menu.cpp
+++ b/src/widgets/menu.cpp
@@ -62,7 +62,7 @@ Menu::Menu(QWidget* parent)
: QMenu(parent)
, d_ptr(new MenuPrivate(this))
{
- connect(d_ptr->m_model, &AlternativesModel::inputDataChanged, this, &Menu::reload);
+ connect(d_ptr->m_model.data(), &AlternativesModel::inputDataChanged, this, &Menu::reload);
connect(this, &QMenu::triggered, this, [this](QAction* action) {
Q_D(Menu);
d->trigger(action->property("row").toInt());