Fix for Qt GUI symbolic debug filename widget size exploding when the ROM file path is large.
This commit is contained in:
parent
50a7bb70c8
commit
42039004b5
|
@ -1416,6 +1416,7 @@ void SymbolEditWindow::setAddr( int addrIn )
|
||||||
{
|
{
|
||||||
char stmp[64];
|
char stmp[64];
|
||||||
std::string filename;
|
std::string filename;
|
||||||
|
size_t size;
|
||||||
|
|
||||||
addr = addrIn;
|
addr = addrIn;
|
||||||
|
|
||||||
|
@ -1438,7 +1439,13 @@ void SymbolEditWindow::setAddr( int addrIn )
|
||||||
generateNLFilenameForAddress( addr, filename );
|
generateNLFilenameForAddress( addr, filename );
|
||||||
|
|
||||||
filepath->setText( tr(filename.c_str()) );
|
filepath->setText( tr(filename.c_str()) );
|
||||||
filepath->setMinimumWidth( charWidth * (filepath->text().size() + 4) );
|
|
||||||
|
size = filepath->text().size();
|
||||||
|
|
||||||
|
// Limit max size so that widget size doesn't explode on a large file path.
|
||||||
|
if (size > 32) size = 32;
|
||||||
|
|
||||||
|
filepath->setMinimumWidth( charWidth * (size + 4) );
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
||||||
void SymbolEditWindow::setBank( int bankIn )
|
void SymbolEditWindow::setBank( int bankIn )
|
||||||
|
|
Loading…
Reference in New Issue