Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Akonadi
Commits
aa7b4ff4
Commit
aa7b4ff4
authored
Oct 30, 2020
by
Filipe Azevedo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport std::get to macOS 10.9
The macOS 10.9 has a limited implementation of C++17.
parent
76a6c137
Pipeline
#39061
failed with stage
in 32 minutes and 52 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/widgets/tagselectioncombobox.cpp
src/widgets/tagselectioncombobox.cpp
+4
-4
No files found.
src/widgets/tagselectioncombobox.cpp
View file @
aa7b4ff4
...
...
@@ -191,10 +191,10 @@ TagSelectionComboBox::TagSelectionComboBox(QWidget *parent)
d
->
tagModel
=
std
::
make_unique
<
TagModel
>
(
monitor
,
this
);
connect
(
d
->
tagModel
.
get
(),
&
TagModel
::
populated
,
this
,
[
this
]()
{
d
->
mModelReady
=
true
;
if
(
std
::
holds_alternative
<
Tag
::
List
>
(
d
->
mPendingSelection
))
{
setSelection
(
std
::
get
<
Tag
::
List
>
(
d
->
mPendingSelection
)
);
}
else
if
(
std
::
holds_alternative
<
QStringList
>
(
d
->
mPendingSelection
))
{
setSelection
(
std
::
get
<
QStringList
>
(
d
->
mPendingSelection
)
);
if
(
auto
*
list
=
std
::
get_if
<
Tag
::
List
>
(
&
d
->
mPendingSelection
))
{
setSelection
(
*
list
);
}
else
if
(
auto
*
slist
=
std
::
get_if
<
QStringList
>
(
&
d
->
mPendingSelection
))
{
setSelection
(
*
slist
);
}
d
->
mPendingSelection
=
std
::
monostate
{};
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment