Browse Source

Fixed: assertion 'buffer->priv->user_action_count > 0' failed

merge-requests/365/head
Ole Christian Eidheim 10 years ago
parent
commit
729b8af35c
  1. 4
      src/selectiondialog.cc
  2. 2
      src/selectiondialog.h

4
src/selectiondialog.cc

@ -64,6 +64,7 @@ void SelectionDialogBase::add_row(const std::string& row, const std::string& too
} }
void SelectionDialogBase::show() { void SelectionDialogBase::show() {
shown=true;
move(); move();
window->show_all(); window->show_all();
} }
@ -72,8 +73,9 @@ void SelectionDialogBase::hide() {
window->hide(); window->hide();
if(tooltips) if(tooltips)
tooltips->hide(); tooltips->hide();
if(on_hide) if(on_hide && shown)
on_hide(); on_hide();
shown=false;
} }
void SelectionDialogBase::update_tooltips() { void SelectionDialogBase::update_tooltips() {

2
src/selectiondialog.h

@ -31,6 +31,8 @@ protected:
std::unique_ptr<Tooltips> tooltips; std::unique_ptr<Tooltips> tooltips;
std::unordered_map<std::string, std::string> tooltip_texts; std::unordered_map<std::string, std::string> tooltip_texts;
std::string last_row; std::string last_row;
private:
bool shown=false;
}; };
class SelectionDialog : public SelectionDialogBase { class SelectionDialog : public SelectionDialogBase {

Loading…
Cancel
Save