From bf343d1fca2e9cd577489b36eac375715be1f07a Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 11 Mar 2020 13:44:20 -0400 Subject: Set default start address in rebase dialog. --- ui/addressdialog.h | 2 +- ui/viewframe.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/addressdialog.h b/ui/addressdialog.h index ae30639b..212b7a7a 100644 --- a/ui/addressdialog.h +++ b/ui/addressdialog.h @@ -64,7 +64,7 @@ private Q_SLOTS: public: AddressDialogWithPreview(QWidget* parent, BinaryViewRef view, uint64_t here, - const QString& title = "Go to Address", const QString& prompt = "Enter Expression"); + const QString& title = "Go to Address", const QString& prompt = "Enter Expression", bool defaultToCurrent = false); ~AddressDialogWithPreview() { delete m_updateThread; } uint64_t getOffset() const { return m_addr; } }; diff --git a/ui/viewframe.h b/ui/viewframe.h index a4c3940d..1a1c0398 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -238,7 +238,7 @@ public: static bool getAddressFromString(QWidget* parent, BinaryViewRef data, uint64_t& offset, uint64_t currentAddress, const QString& addrStr, std::string& errorString); static bool getAddressFromInput(QWidget* parent, BinaryViewRef data, uint64_t& offset, - uint64_t currentAddress, const QString& title = "Go to Address", const QString& msg = "Address:"); + uint64_t currentAddress, const QString& title = "Go to Address", const QString& msg = "Address:", bool defaultToCurrent = false); void setCurrentFunction(FunctionRef func); void updateCrossReferences(); -- cgit v1.3.1