Skip to content

Commit

Permalink
BBSLIST::SelectListDialog: Fix getting name value (JDimproved#1345)
Browse files Browse the repository at this point in the history
お気に入り追加先選択のダイアログで名前の値を取得する処理が
項目のラベル("名前:")を取得していたため修正します。

バグが入ったコミット: 9974da7
  • Loading branch information
ma8ma committed Feb 11, 2024
1 parent 2bb55f4 commit 550c3ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bbslist/selectdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ void SelectListDialog::slot_ok_clicked()
}


std::string SelectListDialog::get_name()
std::string SelectListDialog::get_name() const
{
return m_label_name.get_text();
return m_entry_name.get_text();
}

std::string SelectListDialog::get_path() const
Expand Down
2 changes: 1 addition & 1 deletion src/bbslist/selectdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace BBSLIST
SelectListDialog( Gtk::Window* parent, const std::string& url, Glib::RefPtr< Gtk::TreeStore >& treestore );
~SelectListDialog() noexcept override;

std::string get_name();
std::string get_name() const;
std::string get_path() const;

protected:
Expand Down

0 comments on commit 550c3ac

Please sign in to comment.